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?

checkout
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)?

How is it implemented?

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

Usage examples

Despite of its wide interface, the only isLoggedIn() method is used:

How is the isLoggedIn() method of the «Magento_Customer/js/model/customer» object implemented and used?

0 Likes

How to get the customer's data on the frontend checkout page's client side (with JavaScript)?
How is the isLoggedIn() method of the «Magento_Customer/js/model/customer» object implemented and used?
The «Magento_Checkout/view/view/payment/default.js» object loads the «Magento_Customer/js/model/customer» object but never uses it
The difference between «window.customerData», «Magento_Customer/js/customer-data», and «Magento_Customer/js/model/customer» on a frontend checkout page
(Dmitry Fedyuk) #2

See also:

0 Likes