Magento 2 bestseller sorting: Best Sellers and Trending for category and search
SKU: BESTSELLERSORTING1
- Best Sellers and Trending as new sort options for category and search
- Selectable period: 7, 30, 90 or 365 days
- Real order data, aggregated by cron, cancellations optionally deducted
- Sorted in the OpenSearch index, pagination stays consistent
Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.
Magento 2 bestseller sorting: Best Sellers and Trending for category and search
Magento 2 bestseller sorting adds two options to the sort dropdown of your category and search pages that customers understand at once: Best Sellers and Trending. The ranking comes from your real order lines in the period of your choice, precomputed by cron and stored in the OpenSearch index.
Magento ships with sorting by position, name and price. What is missing is a view of what is actually being bought. For anyone running a large range that helps visitors enormously: they see first the products others have already been convinced by. We set the extension up in your Hyvä shop.
Features of Magento 2 bestseller sorting at a glance
Two sort options, a selectable period and an aggregation that does not slow your category pages down.
Best Sellers
Sorts by quantity sold or revenue in the chosen period.
Trending
Favours products whose sales are rising strongly compared with the previous period.
Selectable period
7, 30, 90 or 365 days, so seasonal items do not stay on top forever.
Cancellations counted
Cancelled and credited lines can be deducted.
Minimum sales
Products with a single chance sale do not get a top spot.
Cron instead of live queries
Figures are precomputed, category pages stay fast.
Best Sellers: Magento 2 bestseller sorting by quantity or revenue
"Best Sellers" appears in the sort dropdown. The ranking comes from your order lines in the chosen period. You decide whether quantity or revenue counts: for consumables quantity is telling, for high-priced items revenue usually is.
- Quantity or revenue as the measure
- Period: 7, 30, 90 or 365 days
- Optionally the default sort of a category
Sort by trend: what is picking up now comes first
"Trending" compares the current period with the one before and lifts products whose sales grow above average. New arrivals and seasonal items move up, while evergreen sellers do not push everything else down. A minimum sales threshold stops products with one single sale from jumping to the top.
- Comparison with the previous period
- Minimum sales as protection against outliers
- Categories can be excluded from the ranking
Technology of Magento 2 bestseller sorting: cron aggregation and OpenSearch index
A cron job aggregates order lines into its own table and writes the values to the OpenSearch index on the next index run. Sorting itself therefore happens in the search index, not in MySQL at runtime. New products without sales rank last in the sales sort options but stay easy to find via the default sort.
- Cron aggregation, no live query on orders
- Applies before the page is cut, pagination is correct
- Sort option label per store view
When Magento 2 bestseller sorting pays off
Three situations for Magento 2 bestseller sorting where sales figures give a better order than a manual position.
Large categories without a fixed order
In categories with several hundred products nobody maintains positions any more. Sorting by sales reliably leads visitors to proven items without anyone having to sort in the admin.
Seasonal business and promotions
A short period of seven days shows what is in demand right now. A long period of 365 days filters out flashes in the pan. You choose what suits your business.
Winning new customers via search and category
New visitors do not know your brands. The sales ranking is an honest signpost and lowers the hurdle to decide because it rests on real purchases.
Magento 2 bestseller sorting: with and without the module compared
With Magento 2 bestseller sorting the difference lies in freshness and upkeep.
| Aspect | Without the module | With the module |
|---|---|---|
| Sort options | Position, name, price | Plus Best Sellers and Trending |
| Data basis | Manual judgement | Real order lines |
| Freshness | Only as fresh as the last upkeep | Selectable period, updated by cron |
| Cancellations | Never factored in | Optionally deducted |
| Performance | A live query on orders would be slow | Precomputed in the search index |
| Upkeep | Positions per category | Automatic, no manual work |
How we set up Magento 2 bestseller sorting in your shop
Setup of Magento 2 bestseller sorting is done personally by Mironsoft so period and measure fit your range.
1. Clarify the goal
For Magento 2 bestseller sorting we decide whether quantity or revenue counts and which periods are offered.
2. Installation
The module is set up, the cron aggregation created and the index extended.
3. Fine tuning
Minimum sales, cancellations and excluded categories are agreed with you.
4. First evaluation
After the first run we check the order in your categories together with you.
Magento 2 bestseller sorting compared with out-of-stock sorting and recommendation lists
Sorting by sales is an additional choice in the dropdown that the customer picks deliberately. The Mironsoft module Out Of Stock At Last, by contrast, acts independently of the choice and moves sold-out items back. Both modules work together: available before sold out first, then by sales.
Who Bought This Also Bought is something different as well: on a single product page it shows what others also bought. Sales sorting concerns whole lists. From a data-protection viewpoint only aggregated product figures are used, no personal data of individual buyers.
No download — personal setup instead
Magento 2 bestseller sorting is not listed here as a ready-made download file for self-installation. The purchase is a service commission: we get in touch after the purchase, set the module up, agree on period and measure with you, and trigger the first aggregation.
Frequently asked questions about Magento 2 bestseller sorting
Everything important about sorting, period, and how the purchase of the extension works.
How is this different from a bestseller box?
How current are the sales figures?
What happens to new products without sales?
Do returns and cancellations count?
Can I use it together with Out Of Stock At Last?
How can I sort by sales in Magento 2?
How can I sort trending products to the top in Magento 2?
Does the sorting work with Hyvä?
Can I download and install the module myself?
Magento 2 bestseller sorting – Mironsoft