Magento 2 Experts — Hyvä Theme, Tailwind CSS & SEO from a Single Source ›

Magento 2 bestseller sorting: Best Sellers and Trending for category and search

Magento 2 Extension Hyvä Ready OpenSearch Magento 2.4.x

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
Auf Lager
€79.00

Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.

No download, but personal setup

No download, but personal setup. This product is not a downloadable software package for self-installation. With your order, you commission Mironsoft to individually set up this module in your shop. We will get in touch with you within 2 business days — we'll sort out the details and payment together then.

This offer is aimed at business owners and companies running a Magento 2 shop.

Magento 2 extension for Hyvä

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.

6 features

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.

01Best Sellers

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
Category · Sort by
Dropdown (example)
Positiondefault
Best Sellers30 days
Trending7 days
Stores › Configuration › Bestseller Sorting
Trending period
7 days
Measure
Quantity sold
Minimum sales
3
Deduct cancellations
Yes
02Trending

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
03Technology behind it

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
System · cron
Last run (example)
Order line aggregationok
Index updateok
Use cases

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.

Comparison

Magento 2 bestseller sorting: with and without the module compared

With Magento 2 bestseller sorting the difference lies in freshness and upkeep.

AspectWithout the moduleWith the module
Sort optionsPosition, name, pricePlus Best Sellers and Trending
Data basisManual judgementReal order lines
FreshnessOnly as fresh as the last upkeepSelectable period, updated by cron
CancellationsNever factored inOptionally deducted
PerformanceA live query on orders would be slowPrecomputed in the search index
UpkeepPositions per categoryAutomatic, no manual work
Process

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.

Delimitation

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.

04How the purchase works

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.

Important to know

Your purchase does not include a download link. We will get in touch with you within 2 business days — we'll sort out the details and payment together then. This offer is aimed at business owners and companies running a Magento 2 shop.

FAQ

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?
A box shows a fixed selection in one place. This module changes the order of the whole category and search result list at the customer's request.
How current are the sales figures?
As current as the last cron and index run, usually hourly to daily depending on your setup.
What happens to new products without sales?
They appear last under Best Sellers and Trending. Via the default sort and your new-arrivals areas they stay visible.
Do returns and cancellations count?
Optionally, cancelled and credited lines are deducted from the ranking.
Can I use it together with Out Of Stock At Last?
Yes, both modules apply in sequence: available before sold out first, then by sales within each group.
How can I sort by sales in Magento 2?
With Magento 2 bestseller sorting the option Best Sellers appears in the sort dropdown. The ranking is computed from your order lines and stored in the OpenSearch index.
How can I sort trending products to the top in Magento 2?
The Trending option compares the chosen period with the previous one and lifts products with above-average growth.
Does the sorting work with Hyvä?
Yes. The options appear in the normal sort dropdown of your Hyvä theme and no additional JavaScript is loaded.
Can I download and install the module myself?
No. This offer is not a download product. After the purchase we install and configure the module personally in your shop.
Write Your Own Review
You're reviewing: Magento 2 bestseller sorting – Mironsoft
loader
Loading...

You submitted your review for moderation.

This form is protected by reCAPTCHA - the Google Privacy Policy and Terms of Service apply.

Magento 2 bestseller sorting – Mironsoft

Magento 2 bestseller sorting – Mironsoft

€79.00