Search by

hryvinskyi / magento2-catalog-sorting-pack

hryvinskyi

Catalog sorting for Magento 2 in the search engine: out-of-stock products and products without images last, per-store Sort By options, and the sort orders Best Sellers, Most Viewed, Now in Wishlists, Top Rated, Reviews Count, New and Biggest Saving on precomputed search-document fields.

Package info

github.com/hryvinskyi/magento2-catalog-sorting-pack

Type:metapackage

pkg:composer/hryvinskyi/magento2-catalog-sorting-pack

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-11-18 21:31 UTC

This package is auto-updated.

Last update: 2026-11-18 21:52:51 UTC


README

Metapackage that installs the catalog sorting module with every rule and sort-order module: listings sorted inside the search engine on precomputed numeric document fields, with out-of-stock products and products without images last, per-store Sort By options, and seven sort orders a shopper can pick.

composer require hryvinskyi/magento2-catalog-sorting-pack
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
bin/magento indexer:reindex catalogsearch_fulltext

The full catalogsearch_fulltext reindex puts the new document fields into the index mapping; listings keep working before it.

It installs:

  • hryvinskyi/magento2-catalog-sorting, the core: leading sort rules, shopper sort fields and search-document fields;
  • hryvinskyi/magento2-catalog-sorting-options, per-store Sort By options: hide, rename, reorder, and a default direction per option;
  • hryvinskyi/magento2-catalog-sorting-out-of-stock, out-of-stock products last;
  • hryvinskyi/magento2-catalog-sorting-no-image, products without images last;
  • hryvinskyi/magento2-catalog-sorting-metrics, the scheduled refresh of popularity values into the search documents, and the command catalog-sorting:metrics:refresh;
  • hryvinskyi/magento2-catalog-sorting-bestsellers, Best Sellers;
  • hryvinskyi/magento2-catalog-sorting-most-viewed, Most Viewed, with a product page view counter;
  • hryvinskyi/magento2-catalog-sorting-wishlist, Now in Wishlists;
  • hryvinskyi/magento2-catalog-sorting-top-rated, Top Rated;
  • hryvinskyi/magento2-catalog-sorting-reviews-count, Reviews Count;
  • hryvinskyi/magento2-catalog-sorting-newest, New;
  • hryvinskyi/magento2-catalog-sorting-saving, Biggest Saving, per customer group.

Out-of-stock products last is on after installation; every other rule and sort order is off until switched on per store view. Start with Stores › Configuration › Catalog › Catalog Sorting. Each module's README describes its settings and limits.