Manage Attributes In Magento 2
In the previous article, I have briefly introduced some basic functions for beginners. If you have not read that article, you can read it: Magento 2 Tutorial For Beginners – Basic Guide. Following the previous article, I will help you learn about Manage Attributes In Magento 2.
In this article, I will talk about: How to create and manage attributes and How to create and manage attribute sets.
What is Attribute?
Attribute is an attribute of a product, it states the characteristics of the product such as product code, product name, color, manufacturer, etc. Magento allows creating attributes to attach and linking products with the same attributes together.
How to create and manage attributes
Step 1: Log in to Admin Panel > STORES > Product in Attributes
.
Step 2: Select Add New Attribute and fill in the attribute information
Attribute Code: The attribute code name, this name will not be duplicated.
Scope: Select attribute to be applied to store view, website or global level
Catalog Input Type for Store Owner: The data type of attribute.
Ex: Color and Size will show as:
Depending on the type of attribute, select the appropriate display type:
Values Required: Required attribute or not.
Input Validation for Store Owner: Validation of the attribute’s input.
Used in Product Listing: Shows whether to use the product list page or not.
Step 3: Enter the label for Attribute in Manage Labels.
Next fill in Manage Titles (such as color, size, material, … depending on the attributes of each product and this name will appear outside the Website)
Then, select the Add Option button and enter all the parameters as desired.
Step 4: Select the Save Attributes button.
Once you have created Attribute, you need to create Attribute Set and drag and drop this newly created Attribute (if you do not want to be included in the default Attribute Set).
How to create and manage attribute sets
Step 1: Log in to Admin Panel > STORES > Attribute Set in Attributes
After creating the desired properties, users can group attributes together.
Step 2: Select “Add New Set” to add 1 attribute to the Add New Set button.
Step 3: Enter a name for the attribute sets.
Step 4: Drag and drop the created attributes to the Groups column. You can change the order of these attributes with drag and drop.
Select the Save Attribute Set button.
Step 5: Drag and drop the created attributes to the Groups column. You can change the order of these attributes with drag and drop.
When adding a new product, on the first step when selecting the Add Product button, select Attributes Set as “Coat”.
The “color” attribute will display the request for selection.
And you still create the product as usual.
It comes to the end of the article: Manage Attributes In Magento 2.
I hope you can successfully implement it yourself.
Follow us for more helpful tutorials!
We hope this is useful blog for you.
Thank you for reading!
Thank you for this great tutorial.
Well, during my research I have another useful guide which has also shown the method to create custom attributes. I am sharing it here so that it help others too: https://www.cloudways.com/blog/configuring-product-attribute-sets-in-magento/