On the checkout get the customer’s details on the js file

The customer data can be received on the js file using the method

‘Magento_Customer/js/model/customer’

define(
    [
        'Magento_Customer/js/model/customer' 
    ],
    function (customer) {
           var customerData = customer.customerData
    });

Using this we can fetch the customer data on the checkout js.

Thank you.

Leave a comment

Your email address will not be published. Required fields are marked *