phone number cusotmer attribute Archives - Magesan

Tag: phone number cusotmer attribute

How to create custom customer attribute in magento 2

Custom attributes are somewhat we need to create in our day to day life for adding additional functionality.Customer attributes are limited and if we need additional functions then we need to create custom customer attribute.Here, we create phone_number field using UpgradeData.php app/code/Magesan/Extension/Setup/UpgradeData.php Save the file and fire commandphp bin/magento setup:upgradephp bin/magento cache:cleanAfter creating attribute. We