Search
×
Log in or create an account
If you have an account with us, please log in.

You have no items in your shopping cart.

Frequently Asked Questions

How can we help you?

banner image

How to change a products sort order in a Magento 2 category?

Product sorting on a category page can help you boost sales of specific items that are on the top of the list. Say, you have a fashion store and replenish the stock every 2 weeks. So you need to sort collections in your Magento 2 according to certain rules. So let’s see the options by which you can sort items in categories.

Method 1. Sorting by product listing

Magento 2 offers 3 options of product listing: by position, product name, or price. To change the default sorting, go to Catalog > Categories, choose the needed category, and open the Display Setting tab. Then go to the Default Product Listing Sort By field and choose the needed parameter from the dropdown. Save the changes.

If you want to customize the collection order in Magento 2, you should choose sort by Position option. Then you will be able to change the position of your products manually. For this, use method 2.

Method 2. Product sorting

Magento Open Source and Commerce have a huge difference in opportunities for product sorting. Let’s consider them separately.

Magento 2 Open Source Edition

To change the product sorting, navigate to Catalog > Categories and choose the Store View that you want to change. Then select the needed category, open the Products in Category tab, and edit the Position column. Save the changes.

Magento 2 Commerce Edition

Step 1. Navigate to Catalog > Categories and change the Store View on the top of the page, if needed.

Step 2. Choose the required category from the category tree.

Step 3. Expand the Products in Category tab, and then click the tiles icon to display the product tiles on a grid.

Step 4. You can sort the products in 2 ways Manual or Automatic.

Step 5. For manual changing of the sort order in the Magento 2 category, choose the needed option from the Sort Order dropdown and click on the Sort button to apply for the sort order. Also, you can use a Visual merchandiser and change the position of products with the drag-and-drop tool. Update any invalid indexers if needed and save the category.

Step 6. For automatic sorting, choose the Yes option in the Match products by rule field and then choose the needed variant form the Automatic Sorting dropdown. Moreover, you can add conditions to the category. Click on the Add condition button and choose the needed Attribute for your rule. Choose one of the following options for the Operator:

  • Equal;
  • Not equal;
  • Greater than;
  • Greater than or equal to;
  • Less than;
  • Less than or equal to;
  • Contains;

And fill in the Value.

Repeat these steps for all the conditions you need.

Step 7. When you are ready, save the category and clean the cache. Then go to your store frontend and check the result of the new Magento 2 sort order.

For more information about product sorting, in Magento 2 Commerce, check the official documentation.

Method 3. Improved Sorting

With the help of the Improved Sorting extension, you can enable product listing in Magento 2 to sort by price, newest, reviews, bestsellers, etc in Magento 2. It allows you to disable unnecessary sorting options, change their order, and rename them. Maximize your sales by placing out-of-stock products to the end of the list and display the special product block at the beginning of the product page with Best Sellers, Most Viewed, Now in Wishlists, Top Rated, New, and other products.

According to the statistics, you may find helpfull the following question about custom columns.

Rate the answer?

Total rating: 5.0

If you didn’t find the answer on your question, please, ask here:

Back to top