The «Magento_Customer/js/model/customer» JavaScript object interface

magento_customer-js-model-customer
customer
javascript
frontend-checkout-customer-data
(Dmitry Fedyuk) #1

Context: How to get the customer’s data on the frontend checkout page’s client side (with JavaScript) using the «Magento_Customer/js/model/customer» object?

customerData property

customerDetails property

It is always empty.

isLoggedIn() method

getBillingAddressList() method

It is never used.

getShippingAddressList() method

It is never used.

setDetails() method

It is never used.

getDetails() method

It is never used.

addCustomerAddress() method

It is never used.

setAddressAsDefaultBilling() method

It is never used.

setAddressAsDefaultShipping() method

It is never used.

0 Likes

How to get the customer's data on the frontend checkout page's client side (with JavaScript) using the «Magento_Customer/js/model/customer» object?
How is the isLoggedIn() method of the «Magento_Customer/js/model/customer» object implemented and used?
The setAddressAsDefaultBilling() method of the «Magento_Customer/js/model/customer» object is never used
The setAddressAsDefaultShipping() method of the «Magento_Customer/js/model/customer» object is never used
The addCustomerAddress() method of the «Magento_Customer/js/model/customer» object is never used
The getDetails() method of the «Magento_Customer/js/model/customer» object is never used
The setDetails() method of the «Magento_Customer/js/model/customer» object is never used
The getShippingAddressList() method of the «Magento_Customer/js/model/customer» object is never used
The getBillingAddressList() method of the «Magento_Customer/js/model/customer» object is never used
(Dmitry Fedyuk) #2

See also:

0 Likes