The Magento 2 offers three different modes for users which are default mode, developer mode, and production mode. Depend on particular situations, store admin can apply different modes for their Magento store.
The Developer mode of Magento is used when whenever you are customizing or extending the Magento 2’s default functionalities. Developer mode will be used for the following reasons :
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