The following module will sort your products and move all out of stock products to the bottom of the catalog so customers can focus on in stock items
* = in production please use the --keep-generated
option
- Unzip the zip file in
app/code/Prodovo
- Enable the module by running
php bin/magento module:enable Prodovo_SaleableSorter
- Apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
- Make the module available in a composer repository for example:
- private repository
repo.magento.com
- public repository
packagist.org
- public github repository as vcs
- private repository
- Add the composer repository to the configuration by running
composer config repositories.repo.magento.com composer https://repo.magento.com/
- Install the module composer by running
composer require prodovo/module-saleablesorter
- enable the module by running
php bin/magento module:enable Prodovo_SaleableSorter
- apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
- Enable (saleable_sorter/general/enabled)