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

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.

See also: