rating

Ratings and reviews are one of the first things customers check when browsing through your catalog. That's why they are an integral part of the Magento product page optimization strategy.

But you can go even further than that and use the Magento 2 sort by rating option to create a category. Intrigued? 

Your customers won't need to scroll through the endless catalogue pages comparing reviews and ratings. You will add the most popular products into one "Most rated" category using the Magento 2 Dynamic Category tool.

Step 1: Create the "Most Rated" Category

The first thing you need is to create category in Magento admin just as you've created any other category on your store.

Most Rated Category in Magento 2

We'll call it "Most Rated" since we're going to put products with the highest ratings and reviews there. You can choose any other name you like, as long as it drives customers' attention.

Step 2: Set Up Basic Category Rule Information

The next step is to create dynamic category rule that will automatically add products to the "Most Rated" category. 

For that go to Catalog > Dynamic Category > Rules and press the Add New Rule button. Here you need to: 

  • Enable the rule.
  • Set the rule Name and Description.
  • Specify the Priority. The higher the number the later the rule will be processed.

magento 2 sort by rating

Step 3: Specify Categories

That's where you define where to add products to — the "Most rated" category you created in the first step. So, choose Static as the category Type and select a corresponding category from the dropdown.

magento most rated category

Note: the other available type here is the Pattern. However, it's more suitable if you want to create multiple categories from scratch based on certain product attributes.

Step 4: Choose Where and How to Apply the Rule

Set what Websites to apply the rule on, and specify how to Apply it.

  • On Product Save — once you save a product it will be added to the "Most Rated" category (in case it falls under the rule conditions).
  • Cron — the cron will run, find products that meet the set conditions (once a day) and add them to your category.
  • Manually — products will be added to the category after you press the "Apply Rules" or "Save and Apply" buttons.

magento dynamic category application settings

Step 5: Fill out Additional Options

The following options define what to do with the products already added to other or current category. 

  • Remove Products from Other Categories —  after the rule is applied all products added to the "Most Rated" category will be removed from the categories they belong to now.

Pro tip: it's best to keep it disabled if you want customers to be able to find the most rated products in other categories too.

  • Remove Other Products from Category — if you've already tried to add some products to the "Most Rated" category manually, they will be removed if you enable this option. Then only products added by the rule will be available in the category.
  • Use Products from Catalog Price Rules — if you have a catalog price rule products you can group them into one category. However, it's more applicable to the Magento 2 sales category. So just don't choose any here.

dynamic category settings magento

Step 6: Set Category Conditions

The final and most important step here is to define Conditions. Basically, you say what criteria products in the "Most Rated" should be based on.

All conditions here are based on various product attributes. However, the ones we're interested in are dynamic attributesScore rating and Reviews rating

You can add any number of reviews and rating scores based on the data from your store.

Product Reviews Magento 2

Additionally, you can set the sorting for the products within your category. Simply choose what product attributes to Sort Product In Category By and specify the Direction

sort products in magento categories

Step 7: Preview Products

Before products are added to the categories and visible on the frontend you can preview them. Verify if all the products meet the set conditions and edit them right from here if necessary.

magento 2 preview products in category

Step 8: View Category on Frontend

Once you preview products press Save and Apply if you want to add products to the Magento sort by rating category immediately. Otherwise, hit Save and Continue Edit to wait for the cron to run and update the category. 

Then go to the storefront to check what the "Most Rated" looks like. 

Product Category Based on Reviews

Although all of the products are still placed within other categories, them being in the "Most Rated" one increases the likelihood of the purchase. And it took us about 5 minutes to set up.

From now on products will be added to this category automatically once their rating passes the threshold specified in the conditions.

The best part is that it works the same for all other categories you create — shop by brand, new arrivals,  best sellers and others.