Pages

Wednesday, September 9, 2015

Magento2: Create Product Attribute


  1. In magento 2 Attribute is create using Setup file. 
  2. If we need to install the data in the system (database) create InstallData.php file in Setup folder.
  3.  so path should be app/code/<package name>/<module name>/Setup/InstallData.php 
  4. In the InstallData.php we need to create class for module.We need to add the below content to create attribute.

No comments:

Post a Comment