In standard Magento the sort options (“Sort By”) sit in the toolbar above the product list, while the filters live in the layered navigation. Especially on mobile devices, or when the filters are shown in a panel, it is easier for shoppers to find sorting next to the filters. This module adds the sort options as an extra group to the layered navigation on category and search result pages.
Features
- New “Sort By” group in the layered navigation that lists all sort options of the store (“Position” and all attributes marked as “Used for Sorting in Product Listing”).
- Choosing an option sorts the current product list, keeping the applied filters.
- The group can be placed as the first or the last entry of the layered navigation.
- Product counts, which make no sense for sort options, are hidden in this group.
- Optionally hides the standard sort selector in the product list toolbar, so sorting is offered only once.
Configuration
Go to Stores > Configuration > Infrangible Solutions > Catalog Filter Sorter > General (settings per website and store view):
- “Direction”: place the “Sort By” group at the “Top” or at the “Bottom” (default) of the layered navigation.
- “Show Toolbar”: whether the standard sort selector in the product list toolbar stays visible. Default is “No”, so it is hidden.
Good to know
For stores using the Hyvä theme, install the companion module “Catalog Filter Sorter Hyvä Theme”. The module works well together with “Catalog Filter Off Canvas”, which moves the layered navigation into a slide-in panel.
Installation
Install the module with Composer in your Magento root directory:
composer require infrangible/m2-catalog-filter-sorterThen enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.
Using the Hyvä theme? Also install the companion module Catalog Filter Sorter Hyvä Theme:
composer require infrangible/m2-catalog-filter-sorter-hyva