Allows you to add one or more products to the shopping cart (quote).
products
is an array of shoppingCartProductEntity objects.
magento.checkoutCartProduct.add({
quoteId: val,
products: [ val, val, val ],
storeView: val /* optional */
}, callback);
// or a single product
magento.checkoutCartProduct.add({
quoteId: val,
products: val,
storeView: val /* optional */
}, callback);
Allows you to retrieve the list of products in the shopping cart (quote).
magento.checkoutCartProduct.list({
quoteId: val,
storeView: val /* optional */
}, callback);
Allows you to move products from the current quote to a customer quote.
productsData
is an array of shoppingCartProductEntity objects.
magento.checkoutCartProduct.moveToCustomerQuote({
quoteId: val,
productsData: [ val, val, val ],
storeView: val /* optional */
}, callback);
// or a single product data cell
magento.checkoutCartProduct.moveToCustomerQuote({
quoteId: val,
productsData: val,
storeView: val /* optional */
}, callback);
Allows you to remove one or several products from a shopping cart (quote).
productsData
is an array of shoppingCartProductEntity objects.
magento.checkoutCartProduct.remove({
quoteId: val,
productsData: [ val, val, val ],
storeView: val /* optional */
}, callback);
// or a single product data cell
magento.checkoutCartProduct.remove({
quoteId: val,
productsData: val,
storeView: val /* optional */
}, callback);
Allows you to update one or several products in the shopping cart (quote).
productsData
is an array of shoppingCartProductEntity objects.
magento.checkoutCartProduct.update({
quoteId: val,
productsData: [ val, val, val ],
storeView: val /* optional */
}, callback);
// or a single product data cell
magento.checkoutCartProduct.update({
quoteId: val,
productsData: val,
storeView: val /* optional */
}, callback);