How To Configure Attributes In Magento 2

A Man Holding a Credit Card for an Online Purchase

Magento 2 is a popular ecommerce platform among online businesses. It offers a lot of features, including the ability to configure attributes. Attributes are essentially the characteristics of a product that a customer can filter by when searching for a specific product. In this article, we’ll dive into how to configure attributes in Magento 2.

Speed Up Your Magento Store by 300%

Step-by-Step Guide on Configuring Attributes in Magento 2

Step 1 – Accessing the Attribute Settings

To configure attributes, log in to the Magento Admin Panel. From there, navigate to Stores > Attributes > Product in the main menu. This will take you to the product attribute settings page.

Step 2 – Creating a New Attribute

To create a new attribute, click the “Add New Attribute” button in the top right corner of the page. This will take you to the attribute properties page where you can configure the attribute details.

Step 3 – Setting Up Attribute Properties

On the attribute properties page, you can set up the attribute properties.

Attribute Properties

  1. Attribute Code – The attribute code is a unique identifier for the attribute. It’s important to choose a code that is descriptive and easy to remember.
  2. Scope – The attribute scope determines where the attribute will be used. Choose between global, to have the attribute available across all store views, or specific, to have the attribute only available in a specific store view.
  3. Catalog Input Type for Store Owner – This determines how the attribute will be inputted in the backend. For example, if it’s a dropdown menu, you’ll need to create the dropdown options.
  4. Values Required – Set this to “Yes” if the attribute is required to be filled out when creating a product.
  5. Unique Value – Set this to “Yes” if each value for the attribute needs to be unique.
  6. Input Validation for Store Owner – This determines what kind of input validation the attribute will undergo.
  7. Apply To – Choose the type of product the attribute can be applied to. For example, if you choose “simple product,” the attribute will only apply to simple products.
  8. Use in Layered Navigation – If you want customers to be able to filter by this attribute on the frontend of your site, set this to “Yes.”
  9. Use in Search – If you want the attribute to be searchable, set this to “Yes.”
  10. Use in Search Results Layered Navigation – This will enable customers to filter search results based on the attribute.
  11. Comparable on Front-end – If you want customers to be able to compare this attribute across multiple products, set this to “Yes.”
  12. Use in Promo Rule Conditions – Set this to “Yes” if you want the attribute to be used in price rule conditions.
  13. Allow HTML Tags on Front-end – If your attribute includes HTML formatting, set this to “Yes.”
  14. Visible on Catalog Pages on Storefront – Set this to “Yes” if you want the attribute to show on catalog pages on the frontend of your site.
  15. Used in Product Listing – Set this to “Yes” if you want the attribute to show on the product listing page.
  16. Used for Sorting in Product Listing – If you want the attribute to be sortable by customers, set this to “Yes.”

Step 4 – Adding Options to a Dropdown Attribute

If the attribute is a dropdown, you’ll need to add the dropdown options. To do this, click the “Manage Options” tab and add the options.

Step 5 – Applying Attributes to Products

Once you’ve configured your attributes, it’s time to apply them to products. You can do this by editing a product, going to the “Advanced Attributes” tab, and selecting the attributes you want to apply.

Step 6 – Saving Changes

After you’ve applied your attributes and made any other changes necessary, be sure to click “Save” to save your changes.


Configuring attributes in Magento 2 is a fairly straightforward process. By following the steps outlined in this guide, you should be able to create and configure attributes to enhance your customers’ shopping experience on your ecommerce site. Remember to set up attributes that are relevant to your products, choose descriptive attribute codes, and make sure the attributes you create are applied to the correct products.

Scroll to Top