Magento – Magento2: Disable user from changing addresses

addresscustomermagento2.2

Is there a way to disable customers from adding, editing, or deleting addresses on their account? I want to be able for users to add the address during registration and then after the account is created, changes can only be made from the backend or rest API. Customers can view the address book but not make any changes themselves. We are using Magento 2.2.0.

Best Answer

A solution will be to customize the address book.phtml template by removing the links to edit and add addresses.

vendor\magento\module-customer\view\frontend\templates\address\book.phtml
Related Topic