How to Add New Product Attributes in Magento 2

How to Add New Magento 2 Product Attributes

What is Magento 2 Product Attribute?

Attributes of a product are what make it different from other products. In other words, they are specific characteristics of a product and a very important part in building your product catalog. Besides, attributes also determine input control which is used for product options and provide additional information for product pages.

Moreover, search parameters and criteria for layered navigation, product comparison reports, and promotions are also determined by attributes.

Therefore, a lot of attributes can be easily created to describe the products in your catalog.

LEARN MORE about Magento Attributes 101 to use them properly.

In this tutorial, we will show you how to add new product attributes in Magento 2 with some simple steps.

How to Add New Magento 2 Product Attributes?

To create a new Magento 2 attribute, login to your website’s admin dashboard and navigate to the Stores ⇒ Attributes ⇒ Product. In this section, you can see a list of all available product attributes shown in a grid table.

Click Add New Attribute to create a new attribute.

Step 1: Complete Information of Attribute Properties

Firstly, in this section, you have to fill in the basic value for the Magento 2 product attribute such as the label, input type, and requirement.

basic magento 2 attribute properties
Basic settings of a new product attribute

In Default Label: give a name for the attribute.

In Catalog Input Type for Store Owner: select input control type to use for the attribute such as Text field, Date, Multi Select Drop down, Visual Swatch and so on.

*Note: If you choose Multi Select or Drop down, you have to configure options for the new attribute in the Manage Options.

magento-2-product-attributes-manage-options
Manage options with some specific types of input control

Click Add Option and then fill in the value you want to be displayed in the first place on the list. In Admin, you can give one value and finish its translation for each store view.  

In case your store only has one store view, it is enough to only enter the value for Admin. You also need to select a value in the Is Default section to make this value as the default one.

To have more options, you continue to click Add Option and repeat the process.

In Value Required: Choose Yes to require customers to choose an option before buying products.

Step 2: Make more setting for Advanced Attributes Properties

You click Advanced Attribute Properties to complete information for the attribute.

magento-2-product-attributes-Advanced-settings
Advanced settings for a new product attribute

In Attribute Code: fill in an attribute code with lower case characters without spaces.

In Scope: select Scope to determine where the attribute is used in the Magento store hierarchy.

In Unique Value: choose Yes to prevent duplicate values from being entered.

In Input Validation for Store Owner: use this setting to validate data filled in a text field. By choosing a data type in the drop-down list that is included in the text field, a validity test is run for this data.  

Step 3: Manage Labels

You click Manage Labels and then enter a title as a label of the field. Besides, you can also enter the different translation of the title which is corresponding to each store view.

manage labels magento 2 attributes
Manage labels

Step 4: In Storefront Properties

Click on the Storefront Properties tab to configure the frontend behavior of the attribute.

storefront properties - magento-2-product attributes

Use in Search: set Yes to make the attribute available for search.

Comparable on Storefront: Set Yes to put the attribute into Product Compare

There are 3 settings which are only applied for catalog input type Dropdown, Multiple Select and Price.

  • Use in Layered Navigation: Set Yes to use the attribute as a filter in layered navigation.
  • Use in Search Results Layered Navigation: Set Yes to use the attribute as a filter in the layered navigation of search result page.
  • Position: fill in a number to define the relative position of the attribute in the layered navigation block.

magento-2-product-attributes-storefront-properties

Use for Promo Condition Rules: Set Yes to use attributes in price rules.

Allow HTML Tags on Frontend: Set Yes to display text under the format of HTML. The WYSIWYG editor is available for this field.

Visible on Catalog Pages on Storefront: Set Yes to make the attribute included in the catalog page listings.

Used in Product Listing: Set Yes to make the attribute included in the product listings (it depends on design theme).

Used for Sorting in Product Listing: Set Yes to use the attribute as a sorting factor for product listings (it depends on design theme).

Finally, you can save the new Magento 2 attribute by clicking Save Attribute.

Conclusion

Here is the full guide on how to add a new Magento 2 product attribute. In case, you want to do more with product attributes such as importing or exporting product attributes into a CSV file; you can take consideration on Magento 2 extensions like Magento 2 Import/ Export Product Attributes. It is the best solution to help you overcome the limitation of default Magento as well as reduce a lot of time when doing quickly and quietly.

import-export-product-attributes

BSS Commerce is one of the leading Magento extension providers and web development services in the world. With experienced and certified Magento developers, we commit to bring high-quality products and services to optimize our business effectively.

CONTACT NOW to let us know your problems. We are willing to support you every time.

Write A Comment

Name

( 2 ) Comments

  • Karen Abrahams

    We’ve just started using your software & I need to understand how do you view all products
    uploaded on one complete spead-sheet .

    • admin

      Hi Karen,

      Thank you for your comment!

      Could you please specify more requirements and send us via email: [email protected]
      We are happy to support you.