Skip to content

magentodevblog/magento-2-add-customer-attribute-programmatically

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento 2 - How to add customer attribute programmatically

This is a Magento 2 module example on how to add custom attribute into a Customer via install script.

Installation

  • Copy the content of the repo to the app/code/Dev/CustomerAttribute
  • Run command: php bin/magento setup:upgrade
  • Run command: php bin/magento setup:static-content:deploy (Use -f for force deploy on 2.2.x or later)
  • Now flush cache: php bin/magento cache:flush

Support

If you encounter any problems or bugs, please open an issue on GitHub.

Releases

No releases published

Packages

No packages published