May 16, 2020 Yogesh Khasturi

How To Add Custom Attributes In My Account Page in Magento 2

Today we will learn how to add a custom attribute in my account page in Magento 2. Previously we discussed

Step-1 Create layout file.

file: app/code/Webiators/CustomerAttribute/view/frontend/layout/customer_account_index.xml

Step-2 Create template file.

file: app/code/Webiators/CustomerAttribute/view/frontend/templates/account/dashboard/info.phtml.

If you have any questions about this topic please mention them in the comment section below.