Get Customer Addresses by Customer ID in Magento 2

 In Magento blog

For converting guest checkout to registered customers you’d need the customer address. But what if the already signed up customer uses guest checkout! The duplicate addresses are saved and it will mess up the address database.

you can get customer addresses by ID in Magento 2 store

Note: Using [Vendor]\[Module]\Helper class’s object you can call method getCustomerAddressById() to get Address Data
For example : $address = $this->myHelper->getCustomerAddressById(Id);

Leave a Comment


0