Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.18 KB

checkout_cart_customer.md

File metadata and controls

45 lines (33 loc) · 1.18 KB

Checkout Cart Customer

Allows you to set the customer addresses in the shopping cart (quote).

customerAddressData is an array of shoppingCartCustomerAddressEntity objects.

magento.checkoutCartCustomer.addresses({
  quoteId:              val,
  customerAddressData:  [ val, val, val ],
  storeView:            val  /* optional */
}, callback);

// or a single address

magento.checkoutCartCustomer.addresses({
  quoteId:              val,
  customerAddressData:  val,
  storeView:            val  /* optional */
}, callback);

Allows you to add information about the customer to a shopping cart (quote).

customerAddressData is an array of shoppingCartCustomerEntity objects.

magento.checkoutCartCustomer.set({
  quoteId:      val,
  customerData: [ val, val, val ],
  storeView:    val  /* optional */
}, callback);

// or a single cell of data

magento.checkoutCartCustomer.set({
  quoteId:      val,
  customerData: val,
  storeView:    val  /* optional */
}, callback);