Product Sorting - Magento 2 module documentation
Author: Mateusz Bereszczuk
Product Sorting Module
Module overview
Make your products easier to find with Magento2 Product Sorting module. Our module lets you take full control over sorting order of your products.
Module compatibility
This module is compatibile with Magento Community versions: 2.2 and 2.3.
How it works
After installation, head to Admin Panel to customize your sorting. Go to Stores > Configuration > Catalog > Catalog > Product Sorting Order
Assign a custom number to desired parameters. Weights let you set priority for default category view. Days to count create time lapse for bestselling and most viewed sorter.
After saving changes, in project root directory run command: bin/magento indexer:reindex.
Head to category view in your front store view to use sorters provided by module.
Clicking on desired option sorts your products either by number of order, number of view or newest products. You can find it in Catalog > Ctegories > Display Settings
Installation
Composer
- Add repo to composer.json:
"repositories": [
...
{
"type": "vcs",
"url": "git@git.auroracreation.com:aurora-modules/ProductSorting.git"
}
...
],
- Add package to composer.json:
"require": {
...
"aurora/productsorting": "*"
...
},
- In Magento root folder run commands:
composer update aurora/productsorting
php bin/magento module:enable Aurora_ProductSorting
php bin/magento setup:upgrade
Manual
- Unzip archive.
- Upload extension files on your server to:
{Magento root}
└── app/
└── code
- In Magento root folder run commands:
php bin/magento module:enable Aurora_ProductSorting
php bin/magento setup:upgrade