For more details see the Amasty Improved Sorting for Magento 2 extension page.
An effective tool for customer care. Improve usability of your store catalog with user-friendly search options. The module allows your potential customers to browse catalog or categories by any parameters they need: best-sellers, most viewed, top rated, new and in a wishlist.
To configure the module, go to Admin Panel → Stores → Configuration → Amasty Extensions → Improved Sorting
You can move out of stock products or products without images to the bottom of the product list (it is possible to apply this option only to catalog page and leave the search page as is).
If you would like to remove ‘Position’ sorting option from front end, please turn this setting to ‘Yes’
To have descending sorting for some attributes by default, please indicate codes of these attributes here (separated by comma)
You can disable any of the sorting options if needed.
Sorting Order - Drag and drop sorting options in the order you want them to appear in the improved sorting drop-down for the customers.
‘Newest’ sorting option displays products in the order they were added to the website. If you would like to manage product order for this option by yourself, please, select a product attribute with the help of which you can specify the dates you need.
Write in 'Label' field a name of the sorting option you would like to be displayed on the frontend.
The sales of products for ‘Bestsellers’ sorting option will be counted for the period, indicated here. So if you indicate ‘15’ here, sales for the last 15 days will be counted and the order of products for bestseller sorting option will be defined based on the count.
Custom Bestsellers Attribute - It is possible to manually move products up in the bestsellers list. For this, please, select the custom bestseller attribute. You can find instructions on how to create and use the custom bestseller attribute in the second section of the guide.
Exclude Orders Statuses - Products with specified order statuses will not be used in Bestsellers.
The sales of products for ‘Most viewed’ sorting option will be counted for the period, indicated here. So if you indicate ‘15’ here, sales for the last 15 days will be counted and the order of products for bestseller sorting option will be defined based on the count.
‘Biggest Saving’ sorting option displays products with the biggest discount on the top of the list. You can use percentage or absolute values to show the difference between regular and special price. For example, you have products A & B. A costs $100; there is a 10% discount on this product, so special price $90. Product B costs $10, with a discount of 50% special price is $5. If the ‘Biggest Saving’ list is sorted by percentage, product B (50% off) would be listed above the product A. If you choose to make sorting by absolute price values, product A will go before product B on the list.
‘Now in Wishlists’ sorting option displays products that were added by other customers to their wishlists. Put down the frontend name of the option in the ‘Label’ field and specify the data update period below.
The 'Top rated' option shows high rated products at the top. In the ‘Label’ field put down a name of the option that is displayed on the frontend.
The 'Reviews count' option sort products by the number of reviews. Fill in the ‘Label’ field with a frontend name.
To create custom attributes for bestsellers and most viewed options, please go to Admin Panel → Stores → Attributes → Product and click ‘Add new attribute’ button.
Default label - Specify any name you like for a custom sorting option.
Select ‘Input Type’ you need, but pay attention that some attribute types can’t be used for sorting (e.g., Text area, Multiple Select, Media Image and Fixed Product Tax). Here are the rules of using attributes for sorting: 1) The attribute shouldn’t be a multi-select, gallery and text area type. Any other types are accepted. 2)Go to Storefront Properties → ‘Used for Sorting in Product Listing’ field and check if ‘Yes’ is selected. If ‘No’ is selected automatically, it means the attribute can’t be used.
Manage labels - Specify the title of the attribute that will be used on the frontend.
Specify Storefront Properties and save the attribute.
Used in Product Listing - Set this option to ‘Yes’ for the attribute specified in the ‘Custom Bestsellers Attribute Code’ field
Used for Sorting in Product Listings - Set the option to ‘Yes’ if you would like to use the attribute for sorting.
To create or edit attribute sets, please go to Stores → Product Templates
Assign the created attribute to the attribute sets that you use for creation of products in Catalog. Remember to save the changes.
To create and manage categories, please go to Admin Panel → Products → Categories
The new product sorting options are available on ‘Display Settings’ tab of the category page, so you can specify which sorting options to use for which category.
Available Product Listing Sort By - The new product sorting options are available on ‘Display Settings’ tab of the category page, so you can specify which sorting options to use for which category.
The new sorting options are added to standard Magento ones on the front end and enable your customers to find the right products faster.
Ratings and reviews of other people can be really helpful for your customers.
To manage indexers and see their current status, please, go to System → Index Management
To manage sorting indexer modes for sorting options like ‘Bestsellers’, ‘Most Viewed’ and ‘Wishlists’, click the ‘Actions’ button.
If the sorting is disabled by any value (see 'General Settings' - 'Disabled sorting by'), the status is ‘Reindex Required’ but reindex doesn’t perform.
‘Update by Save’ mode means that the index is refreshed automatically once per day at 3 a.m.
‘Update by Schedule’ means that the index refreshes according to your cron and reindex performs when the index becomes invalid.