free
web stats

Fill the form & Get Installation Support

Connect With Us





captcha

Connect With Us





captcha

How to add new customer address attributes in Magento 2?

Magento provides so many default fields but If we need custom information in customer address then we can create a new customer_address type attribute.

In this article, I will share how we can add text type attribute in Customer Address,

You need to create InstallData.php file in your existing module or you can create a new module as well as,

If you are creating in your existing module: app/code/[Vendor Name]/[Module Name]/Setup/InstallData.php

After creating the above file you have to run below commands:

Now you can check in the customer section in the admin area.
Our newly created attribute shown in the customer address form.

Was this article helpful?
YesNo
Fill the below form if you have any Magento programming need.




captcha