How to get the customer's data on the frontend checkout page's client side (with JavaScript) using the «window.customerData» object?

checkout
customer
javascript
frontend-checkout-customer-data
checkout-config-provider
(Dmitry Fedyuk) #1

Context: How to get the customer’s data on the frontend checkout page’s client side (with JavaScript)?

window.customerData

A registered customer

A guest customer (a «guest checkout»)

How is it implemented?


Details: How is the frontend checkout configuration passed to the client side (JavaScript)?

0 Likes

How to get the customer's data on the frontend checkout page's client side (with JavaScript)?
The difference between «window.customerData», «Magento_Customer/js/customer-data», and «Magento_Customer/js/model/customer» on a frontend checkout page
How to get the current customer's email on the frontend checkout screen?
(Dmitry Fedyuk) #2

See also:

0 Likes