Magento 2 Module – Product Sorting by Popularity

€71.52 €58.15
COMPOSER Installation
M2-POPULARITY
PayPal PayPal
Przelew Przelew

Magento Modules: Clear Guidelines

You purchase the module once, with no domain restrictions

Tooltip

Free installation and updates via Composer

Tooltip

Affiliate Program

Tooltip

Technical support for Magento

Tooltip

Clear guidelines for licensing Magento modules

Tooltip

Magento Module Code Security

Tooltip

Want to increase sales in your Magento store? The Product Sorting by Popularity module is a solution that automatically displays best-selling products in the top positions, increasing their visibility and sales.

How does the module work?

The module installs two new product attributes:

  • Popularity – calculates popularity based on actual sales data from the time period you define.
  • Custom Popularity – lets you manually set an artificial popularity value for selected products to promote specific items even more effectively.

Popularity calculations are performed automatically using the cron task scheduler every day at 5:00 AM (0 5 * * *). In addition, the module lets you manually run calculations from the Magento admin panel, where you can review the results in real time as clear logs.

Key module features

  • Enable and disable the module – easily manage sorting availability.
  • Set the calculation period – define how many days of sales data should be analyzed.
  • Select order statuses – the analysis includes only orders with the statuses you specify, allowing precise adjustment to your store’s needs.
  • Exclude store views – exclude specific store views from the popularity analysis so they do not distort the results.
  • Log preview – easy access to product popularity calculation results in the admin panel.

Benefits of using the module in your Magento store

  • Higher sales – products with high popularity appear at the top of the list, naturally increasing their conversion potential.
  • Merchandising automation – save time with automated sales analysis and product sorting.
  • Promotion of selected products – manually increase popularity using the custom_popularity attribute.
  • Flexible configuration – full control over the data analyzed by the module.
  • Transparency and control – access to logs lets you continuously monitor the effectiveness of popularity calculations.

The marketing importance of proper product presentation

Proper presentation of your product offering is a key element in the success of any online store. Customers most often make purchase decisions based on what they see first. Highlighting bestsellers and the products that generate the most interest has a positive impact on conversion and builds a positive store image. With automatic sorting by popularity, you can execute your marketing strategy more effectively, resulting in higher sales and greater customer satisfaction.

Who is this module for?

The Product Sorting by Popularity module is a great fit for any Magento store that wants to increase sales and effectively promote bestsellers. It makes it easy to increase the visibility of the most sought-after products.

SEO and Magento store optimization

By using sorting by popularity, you also improve the user experience, which has a positive impact on your store’s SEO. High product popularity indicates attractiveness, which may lead to increased organic traffic and better positions in search results.

Summary

The Product Sorting by Popularity module is an effective and simple tool that will improve the sales performance of your Magento store. Start showcasing your bestsellers today and watch your sales results grow.

Installation and Configuration Guide for the 'Product Sorting by Popularity' Module for Magento 2

1. Installing the module via Composer

Follow the steps below to correctly install the module in your Magento 2 store:

Step 1: Add repositories to the Composer configuration

composer config repositories.popularity vcs https://github.com/kowalco/module-popularitycomposer config repositories.attributes.query vcs https://github.com/kowalco/magento-2-attributes-query

Step 2: Add an access token for the private GitHub repository

composer config --global --auth github-oauth.github.com 

Step 3: Install the module using Composer

composer require kowal/module-popularity

Step 4: Enable the module in Magento 2

php bin/magento module:enable Kowal_Popularity

Step 5: Apply database updates

php bin/magento setup:upgrade

Step 6: Flush the Magento cache

php bin/magento cache:flush

2. Module configuration in the Magento admin panel

After installing the module, go to the Magento admin panel and complete the steps below:

a) Module settings:

  • Go to Stores → Configuration → Kowal → Popularity.
  • Enable or disable the module using the 'Enable Module' field.
  • Set the popularity analysis period in days in the 'Sales Analysis Period' field.
  • Select the order statuses that should be included in the popularity analysis.
  • Select the store views that should be excluded from popularity calculations.
  • Save the configuration.

b) Setting sorting by the 'popularity' attribute:

  • Go to Stores → Configuration → Catalog → Catalog → Product Listing.
  • In the 'Available Sort By' section, make sure the 'Popularity' attribute has been added.
  • In the 'Default Sort By' section, you can set 'Popularity' as the default product sorting method.
  • Save the configuration.

After completing these steps, your Magento 2 store will automatically sort products by their popularity.

Version: 1.0.6

04/15/2025

Enhancement

Added the ability to sort products by the popularity attribute in the PageBuilder widget – Product List and Product List Slider. The new 'Popularity (descending)' option allows the most popular products to be displayed at the beginning of the list, according to the value of the popularity attribute.

Questions and Answers

Question
Does the module automatically place the most popular products at the top of the category list?
Answer
Yes — the module analyzes sales from a specified time period and, based on that, sets the products with the highest popularity as the default in the product list sorting.
Question
How does the module determine a product’s “popularity”?
Answer
The module creates two attributes: “Popularity,” which is calculated automatically based on sales data, and “Custom Popularity,” which allows you to manually set the popularity value for selected products.
Question
Can I set the period from which the module retrieves sales data for analysis myself?
Answer
Yes — in the module configuration, you can specify the number of days from which sales data should be analyzed.
Question
Does the module only take into account orders with a specific status?
Answer
Yes — the module configuration allows you to specify which order statuses should be taken into account when calculating product popularity.
Question
Can I disable popularity analysis for specific store views (multi-store)?
Answer
Yes — the module allows you to exclude selected store views from popularity analysis, providing flexibility in multi-store environments.
Question
Does the module overwrite Magento core or template files?
Answer
No — the module works within the standard Magento 2 architecture as an extension and does not require modifying the system’s core files.
Question
After installation, do I need to add the “Popularity” option myself in the product list sorting configuration?
Answer
Yes — after installation, go to Catalog → Product List and add the “Popularity” attribute as a sorting option or set it as the default sorting method.
Question
Does the module allow you to manually “boost” the popularity of selected products?
Answer
Yes — with the “Custom Popularity” attribute, you can manually set the popularity value for specific products, which allows you, for example, to promote certain items.
Question
Does the module affect the store’s performance?
Answer
The impact is minimal — the analysis runs once a day using CRON (e.g., at 5:00 AM) and does not significantly load the store’s frontend. However, testing in a staging environment is recommended.
Question
Which Magento versions are supported by this module?
Answer
The module declares compatibility with, among others, Magento 2.3.4-2.3.7 and 2.4.0-2.4.7.
Write Your Own Review
You're reviewing:Magento 2 Module – Product Sorting by Popularity
Your Rating
Products
Aktualizacja preferencji plików cookie