The Home for
Magento Excellence

Explore. Discover. Elevate. #magento

162
Modules Tested
98
Ready for Magento 2.4
64
Need Your Help
Stable v1.1.4
Ready to Install
Build tests pass on Magento 2.4.8-p3

Sort Out-of-Stock Products Last in Product Listings

ghoster/module-outofstockatlast

Sort out-of-stock products last in Magento 2 product listings. This module ensures in-stock items appear first, improving user experience and conversion rates. Compatible with Elasticsearch, OpenSearch and Smile ElasticSuite.

111,871
Downloads
Below average
59
GitHub Stars
Below average
7mo ago
Last Release
5
Open Issues

Quality Score

4/5
Installs via Composer
DI compiles correctly
Templates compile
PHPStan Level 1

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.1.4 on Magento 2.4.8-p3
Dec 15, 2025
v1.1.4 on Magento 2.4.8-p2
Aug 14, 2025
v1.1.4 on Magento 2.4.8
Jun 14, 2025
v1.1.3 on Magento 2.4.8
May 18, 2025
v1.1.3 on Magento 2.4.7-p4
Feb 15, 2025
v1.1.3 on Magento 2.4.7-p3
Feb 2, 2025
GitHub Repository
Source code & docs
Packagist
Version history
Issues & Support
Get help or report bugs

Share This Module's Status

Sort Out-of-Stock Products Last in Product Listings Magento compatibility status badge

README

Loaded from GitHub

Magento 2.4.x module Sort Out Of Stock Product At last the product list

composer require ghoster/module-outofstockatlast

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require Donate Codacy Badge Build Status

Main Functionalities

  • Sort Out Of Stock Product At last the product list
  • Compatibility with smile/elasticsuite^2.11
  • Firstly Display Out of Stock Products from Stores > Configuration > Catalog > Inventory > Stock Options must be set Yes
  • Of course, we are talking about Elastic Search. We don't support old search engine
  • From time to time we remind you Reindexing after you enable the module

Compatibility

| Magento Version (Open Source/Commerce) | Elasticsearch | OpenSearch | ElasticSuite | Supported | | -------------------------------------- | ------------- | ---------- | ------------ | --------- | | 2.0.x | 2.x | - | 2.1.x | No ❌ | | 2.1.x | 2.x & 5.x | - | 2.3.x | No ❌ | | 2.2.x | 5.x & 6.x | - | 2.6.x | No ❌ | | <2.3.2 | 5.x & 6.x | - | 2.8.4 | No ❌ | | <2.3.5 | 5.x & 6.x | - | 2.8.x | No ❌ | | >=2.3.5 | 6.x & 7.x | - | 2.9.x | No ❌ | | 2.4.0 | 6.x & 7.x | - | 2.10.1 | Yes ✔️ | | >=2.4.1 && < 2.4.6 | 6.x & 7.x | - | 2.10.x | Yes ✔️ | | >=2.4.6 | 7.x & 8.x | 1.x & 2.x | >=2.11.x | Yes ✔️ |

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
  • 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

Donation

If this project help you reduce time to develop, you can give me a cup of beer :)

paypal

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.

Back to All Modules