kowal.info

Product Popularity

Composer kowal/module-popularity · Version 1.0.14

Product page

Product Popularity — kowal.co

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

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

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.