Magento 2.4.x module Sort Out Of Stock Product At last the product list
composer require ghoster/module-outofstockatlast
Main Functionalities
- Sort Out Of Stock Product At last the product list
- Compatibility with
smile/elasticsuite~2.10.0
- Firstly
Display Out of Stock Products
Stores > Configuration > Catalog > Inventory > Stock must be setYes
- Of course, we are talking about Elastic Search. We don't support old search engine
Installation
* = in production please use the --keep-generated
option
Type 1: Zip file
- Unzip the zip file in
app/code/GhoSter
- Enable the module by running
php bin/magento module:enable GhoSter_OutOfStockAtLast
- Apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
Type 2: Composer
- 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 ghoster/module-outofstockatlast
- enable the module by running
php bin/magento module:enable GhoSter_OutOfStockAtLast
- apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
Configuration
- Reindexing after you enable the module