Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 1.44 KB

checkout_cart.md

File metadata and controls

62 lines (44 loc) · 1.44 KB

Checkout Cart

Allows you to create an empty shopping cart.

magento.checkoutCart.create(callback);

// or

magento.checkoutCart.create({
  storeView: val
}, callback);

Allows you to retrieve full information about the shopping cart (quote).

magento.checkoutCart.info({
  quoteId:    val,
  storeView:  val   /* optional */
}, callback);

Allows you to retrieve the website license agreement for the quote according to the website (store).

magento.checkoutCart.license({
  quoteId:    val,
  storeView:  val   /* optional */
}, callback);

Allows you to create an order from a shopping cart (quote).

Before placing the order, you need to add the customer, customer address, shipping and payment methods.

magento.checkoutCart.order({
  quoteId:    val,
  storeView:  val,  /* optional */
  agreements: val   /* optional */
}, callback);

Allows you to retrieve total prices for a shopping cart (quote).

magento.checkoutCart.totals({
  quoteId:    val,
  storeView:  val   /* optional */
}, callback);