Marketing
Module code
b4ncategorybestsaleproducts
Module version
3.0.2
PrestaShop
1.6, 1.7, 8, 9
Updated
26. 11. 2026

Best-selling products in category

A best-sellers block right on the category page. It shows what customers buy most often from the category and its subcategories, and lets them expand the rest with a button.

  • Category and subcategories. Ranked by units sold.
  • Fast category page. One query and a cached selection.
  • Your own placement and colors. No template edits.
  • PrestaShop 1.6 to 9.
What you are buying
€59.00
incl. VAT · 48,76 € excl. VAT

Perpetual licence for 1 domain · 12 months of updates and support included

What does the support include?
  • new versions of the module to download in your account
  • answers to your questions about the module by e-mail

Installation, setup and custom changes are a paid service.

€30.00 incl. VAT · €24.79 excl. VAT

The support is extended by 12 months from the end of the current support, an expired one from the payment.

What does the support include?
  • new versions of the module to download in your account
  • answers to your questions about the module by e-mail

Installation, setup and custom changes are a paid service.

The extension is added to a licence in your account.

Sign in
  • Download right after payment
  • We are VAT payers

What it solves

Best sellers right on the category page

Customers in a category instantly see what others buy most. The module adds up sales from the category and all its subcategories and shows them in a clear ranking above or below the product listing.

Version 3 has been rewritten from the ground up: it picks the products with a single query over the category tree and caches the selection, so even large categories stay fast.

Who it is for

Is this module right for your store?

It is for you if

  • you have categories with dozens or hundreds of products and want to show customers the proven ones right away,
  • you sell in subcategories and want a ranking for the whole branch,
  • you want to keep some products out of the best sellers (samples, gift vouchers, add-ons).

You do not need it if

  • you want the best sellers of the last 30 days – the module counts all sales,
  • you are looking for a homepage block – that is what the Best-selling products - fast block module is for,
  • you have a new store with no orders yet – the block appears with the first sales.

Benefits

More proven products sold, a fast category page

The whole category branch

The ranking counts the category and all its subcategories, not just the products placed directly in it.

Fast category page

One query over the category tree and a cached selection (60 minutes by default).

Correct prices and visibility

PrestaShop calculates prices and discounts, and customers see only products available to their group.

No template edits

On PrestaShop 1.7 to 9, place it above or below the listing with one switch; colors and heading in the settings.

How it works

From settings to a ranking in your category

  1. You set the numbers

    How many products to show right away (3 by default) and in total (10 by default, 50 max).

  2. You choose the placement

    Above the listing, below it or a custom spot in the template. On PrestaShop 1.6, a hook in the category template.

  3. The module picks the products

    By quantity sold, from the category and its subcategories, optionally in-stock only.

  4. Customers expand the rest

    With the Show more button, on mobile too and without JavaScript.

Examples

Examples

The block in a category and its settings

The examples come from a test store running PrestaShop 9 with the Hummingbird theme.

Ranking above the product listing

Rank, image, name, stock status and price. Discounted products also show the original price.

  • the first three right away, the rest under the Show more button,
  • font and link color taken from your store's theme.
Best-selling products block in a category

Accessories category – block above the listing

Clear on mobile

Rank on the image, stock status and price on one line under the name, full-width button.

  • expands without reloading the page.
Expanded best-sellers block on mobile

Mobile – expanded ranking

Colors to match your website

Set the background and rank number colors in the Appearance tab, along with the block heading in each language and whether to show images.

Block with custom rank colors

Custom rank colors – yellow and black

Settings on one page

Number of products shown right away and in total, in-stock products only, block placement and how long the selection stays cached.

  • cache 0 to 1,440 minutes, 0 = off,
  • the selection refreshes when a product is saved.
Main module settings

Configure → Main settings

Excluded products

Leave out products that do not belong among the best sellers – by ID in the settings or with a checkbox in the Modules tab of the product page.

  • list of excluded products with reference and category,
  • back in the ranking with one click.
List of excluded products

Configure → Excluded products

Features

Everything the module can do

Block in the category

  • products from the category and all its subcategories
  • sorted by quantity sold
  • 1–50 products, some under the Show more button
  • optionally in-stock products only
  • stock status and price, original price for discounts

Appearance and placement

  • above the listing, below it or a custom hook in the template
  • heading in each language
  • background and rank number colors
  • product images on / off
  • mobile layout

Management

  • excluded products in the settings and on the product page
  • selection cache 0–1,440 minutes
  • selection refresh after a product is saved

Technical details

  • PrestaShop 1.6, 1.7, 8 and 9
  • no JavaScript, styles loaded on category pages only
  • migration from the old b4n_category_best_sale_products module
  • Czech, Slovak, Polish, German, English

Version history

  • 3.0.2 · 26 Nov 2026Fix of the "Only products in stock" option in shops without stock management.
  • 3.0.1 · 25 Nov 2026Fixed display of the Appearance and Excluded products tabs in PrestaShop 8 and 9.
  • 3.0.0 · 25 Nov 2026New version for PrestaShop 1.6 to 9 with faster listing and its own settings.

FAQ

What you ask us

How are the products ranked?

By total quantity sold, taken from PrestaShop's sales table, for the category and all its subcategories.

Does a new order show up right away?

No, on purpose. The selection refreshes when the cache expires (60 minutes by default) or when a product is saved, so orders do not slow down category pages.

How do I leave a product out of the ranking?

On the product page, in the Modules tab, check Do not show among category best sellers, or enter the product IDs in the module settings.

Will customers see products they should not see?

No. The block shows only active products visible in the catalog, from categories the customer's group can access.

How do I show the block on PrestaShop 1.6?

Insert the hook {hook h="displayCategoryBestSaleProducts" category=$category} into the category template (category.tpl). On PrestaShop 1.7 to 9, just choose the placement in the settings.

I have the old version of the module. Will I lose my settings?

No. The migration script renames the module in place and keeps the product counts, hook positions and excluded products.

Parameters

Technical details

Module labelb4ncategorybestsaleproducts
Module version3.0.2
Prestashop version1.6, 1.7, 8, 9
Last update26. 11. 2026
License validityUnlimited in time
Support12 months
LocalisationCzech, English, German, Polish, Slovak
Minimum PHP version7.3
PHP Version7.3, 7.4, 8.0, 8.1, 8.2, 8.3

What the price includes

  • module for PrestaShop 1.6, 1.7, 8, 9
  • perpetual licence for 1 domain
  • 12 months of new versions to download in your account
  • 12 months of answers to your questions about the module by e-mail
  • help inside the module and a setup guide
  • invoice with VAT

Installation, setup and custom changes are a paid service. Custom development

Question about the module

Do you have a question about the module?

Tell us what you need to solve in your shop. We will advise whether the module helps you, how to set it up and what else you will need.

Product inquiry

Satisfaction
guarantee
Professional
approach
Technical
support
Online
payment

Get our latest news and special sales

You may unsubscribe at any moment. For that purpose, please find our contact info in the legal notice.