Get Customer Addresses by Customer ID in Magento 2

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 Reply

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


CynoInfotech was founded in 2019, in Ahmedabad, Gujrat. CynoInfotech is a Magento module development company that grow up over this year with outsourcing clients.