marcomessa/module-out-of-stock-at-last

1.0.0 2024-03-05 15:15 UTC

This package is auto-updated.

Last update: 2024-12-05 17:12:23 UTC


README

This is a fork of https://github.com/majidiyan/magento2-out-of-stock-move-end-category (thanks to @majidiyan) with some improvements. This module let you move out of stock products in last position of last pages in category pages. You can enable or disable this feature at website scope in the admin panel. You can also change the ElasticSearch sort stack order in which this sorting will be applied.

in order to work you must run a reindex after the installation, because you need to add stock infos in indexes.

Requirements

  • Magento 2.4+
  • ElasticSearch

Composer install

composer require marcomessa/module-out-of-stock-at-last

bin/magento module:enable MarcoMessa_OutOfStockAtLast
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento index:reindex

Settings

You can find the settings in the admin panel under Stores > Configuration > Out of stock at last > Settings