What You Need to Know About Product Attributes in Magento 2: Settings and Customization

Table of Content

Why product attributes in Magento 2 are important.

Since we can define a product as a certain list of its features, we cannot deny that attributes are of a great importance. And for e-commerce, it is really crucial: to introduce a product from as many sides as it is digitally possible.

As a merchant, you always seek to provide your customers with the most detailed information on your goods on Magento 2 category, product, blog pages and more for the customers can easily browse and promptly find what they are looking for.

Naturally, any aspects that make a particular product unique should be specified as an attribute in a catalog for a proper indexing. And, as a result -- for a better filtering, better searching and comparing, etc.

In this article we will talk how to set product attributes in Magento 2, create custom attribute and their use in Amasty modules.

However, you should also put some efforts into making customers find this product. This is where Magento 2 Elastic Search can be of help. This module offers search by synonyms and words with mistakes, it supports 18 languages and it is mobile-friendly.

Provide your customers with a fast and accurate search!

  

Product attributes and its sets

There are approximately six dozens of product attributes available by default in Magento 2. Moreover, you can add as many custom attributes as you need. To add a product attribute, you should as well specify its attribute set. Magento 2 attribute sets can be really helpful to manage an information order, since a particular feature may be relevant only to some group of products.

For instance, your enterprise deals with watches. This product is quite unique and has its specifications. You want to represent this in your web store accurately: you want to differ analog, quartz, digital, other watches. So, you choose a product attribute from Magento 2 list that is a Type, but specifically for watches. You don’t want to mix it with other Types of apparel, bags, accessories, etc.

And this is what product attribute set is good to use in Magento 2. You input the Type field to create for watches to Watches’ attribute set (i.e., not default). This way a field with this Type (for instance, a drop-down with the watches types) will appear only in the settings of the watches products, and later, as a part of the information on their product pages.

Consider that before you start adding new products to your catalog. It is better to plan the correlation of attribute sets with products forehand. As due to the default Magento 2 functionality, it is not possible to change the attribute set once you assigned it to a product.

How to add a new custom product attribute to Magento 2?

In Magento 2, to create a custom product attribute, go to the Admin Panel>Stores>Attributes>hit the Add New Attribute button:

Specify the name of a product feature in the Default Label field.

As for the Catalog Input Type for Store Owner (basing on Magento 2 default product structure) you can select from the list one of the following configurable Magento 2 product attribute types:

  1. Text Field

(A single line text field may be used for the Name attribute, for instance)

  1. Text Area

(A text field that displays text paragraphs may be used for Description attribute and may be formatted in HTML)

  1. Date

(For date values - Date attribute - input it right away or pick up from the calendar)

  1. Yes/No

(A drop-down with Yes/No options, may be used for New or Sale attributes)

  1. Multiple Select

(A list of options, which you can multi check with held down Ctrl key, may be used for Activity, Climate, Material attributes)

  1. Dropdown

(A list of options with one possible selection may be used for Shipment type, Tax Class attribute)

  1. Price

(Use it for Price, Special Price, Tier Price)

  1. Media Image (Additional image)
  2. Fixed Product Tax
  3. Visual Swatch

(Use it for Color, Brand)

  1. Text Swatch

(Use it for Size)

Thereupon, navigate to Attribute Properties:

Values Required - Yes  

You mostly need to enable Values Required for crucial product features like Product Name, SKU, Price, which means that without this values being specified a product will not be created.

Product attributes in Amasty extensions

Layered Navigation/ Filtering

Improved Layered Navigation is probably the most wanted thing within any e-commerce project. All merchants are craving to manage a perfect browsing experience for their customers since this directly affects the conversion. The extension out of the box alone will make your web store much faster, but you can make it really excellent by simply adding a little bit of configuring matching to your Magento 2 store. The idea is to make every product attribute adequately filterable and findable.

How to make an attribute filterable?

Let’s have a look at the Storefront Properties settings of a particular product attribute.

To make an attribute filterable and searchable:

  • set Use in Search setting to Yes;
  • additionally, you can specify the Search Weight of an attribute in the search;
  • set Use in Layered Navigation to either Filterable (with results) or Filterable (no results).

How to create a Brand product attribute?

  • Go to the Admin Panel>Attributes>Product>Add New Attribute;
  • Select Visual Swatch for Catalog Input Type for Store Owner:

  • Add and manage Swatches:

  • Make an attribute filterable, as it is described above;
  • Go to the Admin Panel>Attributes>Attribute Set>select the Default set, if you want to specify a brand for each product of your catalog;
  • Drag and drop brand feature to any place you would like it to appear in a product details list in the backend:

 

Product Labels/ Conditions

Product Labels is a clear in settings and understandable extension. Mostly, all the combinations don’t acquire any manipulations with the product attributes. In most cases, you work directly with the products. As long as you don't work with conditions, everything is very intuitive. The complexity of conditions is namely the product attributes challenge.

The following prescriptions are going to help you at the stage when you want to set conditions.

To allow attributes to operate in conditions:

  • Go to the Admin Panel>Attributes>Product> select a particular attribute;
  • Go to its Storefront Properties;
  • Set Use for Promo Rule Conditions to Yes:

 

Improved Sorting/ Sorting

This module allows you to create a sorting filter by any product attribute. It makes customer navigation faster, so they can faster make the purchase. Besides sorting by reviews, price, and most viewed products, you can add default sorting to a category page. So you can draw attention to new or best-selling products. To configure it, go to Catalog>Categories, choose the needed category, and open the Display Settings tab. In the Default Product Listing Sort By graph, choose the needed attribute:

Save the changes.

Also, this module has the next benefits:

  • You can rename sorting options and change the order with a drag-and-drop tool;
  • Put out-of-stock products at the end of the list automatically;
  • Mobile-friendly.

Advanced Search / Weight

As much as efficient navigation, a successful web store needs a good search. And again we can’t avoid dealing with the product attributes. You can significantly improve search performance by regulating the search weight of the product attributes.

With Advanced Search for Magento 2, it easy to make the search results more relevant. For instance, the search weight feature allows you to significantly improve the results by color:

  • Go to the Admin Panel>Stores>Configuration>Search Pro>Search Attributes;
  • Set Color attribute to the maximum 10 value;
  • Specify other product attributes with lower values, e.g. 5.

This will provide perfectly relevant results when searching by color:

 

Elastic Search/ Search query

Elastic Search for Magento 2 is a fast and intelligent extension that brings a search in e-commerce to a new level.

One of its distinctive features is the extensive settings for a search query. Alongside with the possibility to set the type of autocomplete suggestions (wildcard), you can specify search type preferences for each product attribute:

For instance, for SKU, it is better to use a wildcard search, while for descriptions - an autocorrection. You can specify a match mode for the keywords as well -- the way how they are combined (AND/OR).

 

Conclusion

As you see, product attributes are crucial when it comes to filtering, searching, and comparing products. Product attributes can significantly affect the functionality of your web store: boost or slow it down. So take time to configure them in the right way.

July 9, 2018
July 17, 2018
July 4, 2018
Comments
Luuk
September 2, 2019
hi I bought your layered navigation, but filtering by brand doesn’t work!!!
Reply
Polina Litreyeva
September 2, 2019
Hello, Luuk! I’m very sorry to hear that you’ve come up with the issue, but it’s difficult to answer from here. Please, leave a ticket with the site access info for our support team to view the problem in details. We’ll see what we can do for you. Thanks in advance!
A.P. Moretti
September 9, 2019
But for what I need to specify weight for attribute? Is it really useful?
Reply
Polina Litreyeva
September 9, 2019
Hello there! The weight attribute will give the attributes a higher value in search results. In our example first on the results page are products that have the color attribute “red” and only after them product that has the word “red” in the description. So, you can use it for your marketing needs, to show the needed goods in the first place.
Dora d.
March 16, 2021
the article is good, nice presentation of the info!
Reply
Vladimir Derachits
March 16, 2021
Hello Dora! Thank you for reading and sharing your opinion. We are glad that you liked it.
Leave your comment

Your email address will not be published

This blog was created with Amasty Blog Pro

This blog was created with Amasty Blog Pro