---
title: 'Product Popularity'
url: 'https://info.srv.kowal.co/docs/magento/modules/popularity'
markdown: 'https://info.srv.kowal.co/docs/magento/modules/popularity.md'
lang: en
date: '2026-11-29'
description: 'Choose the sales period, order statuses and stores that count toward a product’s popularity. After cron runs, compare the score with the number of units ordered.'
taxonomy:
  category:
    - docs
    - Magento
    - Modules
  tag:
    - catalog
    - merchandising
---

# Product Popularity

**Composer** `kowal/module-popularity` · **Version** 1.0.14

## Product page

[Product Popularity — kowal.co](https://kowal.co/magento-2-product-sorting-by-popularity-module)

## Description

Calculates product popularity from units ordered during a configured period and writes the score to a product attribute.

## For whom

For merchandisers who use sales volume to order products in the catalog.

## Features

- Configurable lookback period in days.
- Order status selection and store exclusions.
- Optional positive score adjustment through the `custom_popularity` attribute.

## Installation

From the Magento root, with Composer access to the Kowal package, run

```sh
composer require kowal/module-popularity
bin/magento module:enable Kowal_Popularity
bin/magento setup:upgrade
bin/magento cache:clean
```

## Configuration

1. Enable the module under **popularity → settings** and set the lookback period, for example 30 days.
2. Select the order statuses to include. The defaults are `complete` and `processing`.
3. Select any stores to exclude under **skip\_stors** and save.

## Requirements / notes

The package requires `kowal/base` and `kowal/module-attributesquery`. The `kowal_popularity_popularity` job runs in the `popularity` cron group on the schedule `0 5 * * *`.

## FAQ

**Why is an order placed today missing from the score?**

Check whether the job has run since the order was placed and whether its status, date and store match the configured criteria.

## Verify the installation

```sh
bin/magento module:status Kowal_Popularity
```

Use a standalone simple product with known test sales and no manual boost. After recalculation, compare its `popularity` attribute with units ordered during the selected period. Review the run in `var/log/popularity.log`.

---

## Navigation

- Parent: [Magento 2 Extensions](https://info.srv.kowal.co/docs/magento/modules.md)
- Previous: [Robots](https://info.srv.kowal.co/docs/magento/modules/robots.md)
- Next: [Authorized Service Information](https://info.srv.kowal.co/docs/magento/modules/autoryzowany-serwis.md)
