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.
-
what about check new address create and save?– Amit Bera ♦Oct 10, 2017 at 17:34
-
I'm sorry can you explain?– MrPeanutbutterOct 11, 2017 at 17:07
-
except the customer address page, Magento also add new address of a customer at checkout page.So, My question is that are you to prevent to address from Also Checkout?– Amit Bera ♦Oct 11, 2017 at 17:15
-
Yes, I want to make it impossible for a customer to add, update or delete an address. This includes preventing them from changing from their account page and the checkout page.– MrPeanutbutterOct 11, 2017 at 21:46
1 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