Magento 2: Create Product Attribute, Attribute Group/Tab & Attribute Set Programmatically

This article shows how you can programmatically add or create a new product attribute, product attribute group, and product attribute set in Magento 2. In this article, we will be looking at the following: Create Product Attribute Update Product Attribute Remove Product Attribute Create Product Attribute Group/Tab Add Product Attributes to the Attribute Group/Tab Create … Read more

Magento: Adding attribute from MySql setup file

You can add attribute from Admin Panel -> Catalog -> Attributes -> Manage Attributes. You can also add attributes from mysql setup file of your module. MySql setup file is present inside “YourModule/sql/yourmodule_setup” directory. In the following example, the version of my module is 0.1.0.  I have added attribute for product. I have added a … Read more