In Magento 2 sometimes we need to add additional information in customer address In this case, we can create a custom address field to store the additional information. So, in this blog, we will learn how to create a custom customer address attribute then set the value of this attribute and get the value of this attribute.
To Create or add a customer address attribute we need to create a PHP file for defining our customer address attribute name and attribute_code.To Create custom customer address attribute follow below steps:
Firstly, we will create the InstallData.php file at below path :
Mageants -> Blog -> Setup -> InstallData.php