The difference between «window.customerData», «Magento_Customer/js/customer-data», and «Magento_Customer/js/model/customer» on a frontend checkout page

guest-customer
magento_customer-js-customer-data
customer
frontend-checkout-data
frontend-checkout-customer-data
window.customerdata
checkout-config-provider
magento_customer-js-model-customer
javascript
checkout
(Dmitry Fedyuk) #1

1. window.customerData

1.1. A registered customer

1.2. A guest customer (a «guest checkout»)

2. Magento_Customer/js/customer-data

2.1. A registered customer

2.2. A guest customer (a «guest checkout»)

3. Magento_Customer/js/model/customer

3.1. A registered customer

The customerData property of the Magento_Customer/js/model/customer object references the same object as window.customerData:

3.2. A guest customer (a «guest checkout»)

0 Likes

The setDetails() method of the «Magento_Customer/js/model/customer» object is never used
How to get the customer's data on the frontend checkout page's client side (with JavaScript)?
The setAddressAsDefaultBilling() method of the «Magento_Customer/js/model/customer» object is never used
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 «Magento_Customer/js/customer-data» object implemented and used?
The getBillingAddressList() method of the «Magento_Customer/js/model/customer» object is never used
How is the isLoggedIn() method of the «Magento_Customer/js/model/customer» object implemented and used?
The getDetails() method of the «Magento_Customer/js/model/customer» object is never used
The «Magento_Checkout/view/view/payment/default.js» object loads the «Magento_Customer/js/model/customer» object but never uses it
How to get the customer's data on the frontend checkout page's client side (with JavaScript) using the «window.customerData» object?
The addCustomerAddress() 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 setAddressAsDefaultShipping() method of the «Magento_Customer/js/model/customer» object is never used
The «Magento_Customer/js/model/customer» JavaScript object interface
(Dmitry Fedyuk) #2

See also:

0 Likes