# ghoster/module-outofstockatlast

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

`composer require ghoster/module-outofstockatlast`

Canonical URL: https://packagento.com/ghoster/module-outofstockatlast

## At a glance

- **Vendor**: ghoster (https://packagento.com/ghoster.md)
- **Latest version**: 1.1.6 — released 2026-04-15
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/ghoster/module-outofstockatlast and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require ghoster/module-outofstockatlast:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

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

## README

    composer require ghoster/module-outofstockatlast

[![Latest Stable Version](https://poser.pugx.org/ghoster/module-outofstockatlast/v)](https://packagist.org/packages/ghoster/module-outofstockatlast)
[![Total Downloads](https://poser.pugx.org/ghoster/module-outofstockatlast/downloads)](https://packagist.org/packages/ghoster/module-outofstockatlast) 
[![Latest Unstable Version](https://poser.pugx.org/ghoster/module-outofstockatlast/v/unstable)](https://packagist.org/packages/ghoster/module-outofstockatlast) 
[![License](https://poser.pugx.org/ghoster/module-outofstockatlast/license)](https://packagist.org/packages/ghoster/module-outofstockatlast) 
[![PHP Version Require](https://poser.pugx.org/ghoster/module-outofstockatlast/require/php)](https://packagist.org/packages/ghoster/module-outofstockatlast)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/thinghost)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/63baac1389b34c8d8b1005a087f8f2ab)](https://www.codacy.com/gh/tuyennn/magento2-outofstockatlast/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=tuyennn/magento2-outofstockatlast&amp;utm_campaign=Badge_Grade)
[![Build Status](https://github.com/tuyennn/magento2-outofstockatlast/actions/workflows/coding-standard.yml/badge.svg)](https://github.com/tuyennn/magento2-outofstockatlast/actions/workflows/coding-standard.yml)
---
- [Extension on GitHub](https://github.com/tuyennn/magento2-outofstockatlast)
- [Direct download link](https://github.com/tuyennn/magento2-outofstockatlast/tarball/master)

### 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](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.me/thinghost)

## Recent Versions

| Version | Released |
|---|---|
| 1.1.6 | 2026-04-15 |
| 1.1.4 | 2025-05-12 |
| 1.1.3 | 2024-08-08 |
| 1.1.2 | 2024-05-06 |
| 1.1.1 | 2023-08-14 |
| 1.1.0 | 2023-06-26 |
| 1.0.6 | 2023-05-29 |
| 1.0.5 | 2022-06-09 |
| 1.0.4 | 2022-04-19 |
| 1.0.3 | 2022-04-14 |

Showing 10 of 13 versions. Full release history on https://packagento.com/ghoster/module-outofstockatlast.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | >=102.0.0 |
| php | >=8.1.0 |

## Quality

Latest release (1.1.6) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Pass | 0 |  |
| PHPMD | Warning | 1 | 1 rule violation (MissingImport:1) |
| Cpd | Pass | 0 |  |
| Composer validate | Info | 1 | valid; 1 advisory note (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 2 | 2 | – | – |
| 2.4.8 | – | 2 | 2 | – |
| 2.4.9 | – | – | 2 | 2 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["ghoster/module-outofstockatlast"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

ghoster is a Magento 2 vendor on Packagento. See https://packagento.com/ghoster.md for their full catalogue.

