nordcomputer / showoutofstockprice

nordcomputer/showoutofstockprice

Adds price to out-of-stock products and shows Swatches for configurable out-of-stock products

magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Fail Tests: N/A Security: Pass OSL-3.0, AFL-3.0

Module for Magento 2 to show price for out-of-stock products

magento2-showoutofstockprice

This Magento2 Module adds prices to out-of-stock products. You can either download it and put it into /app/code/Nordcomputer/Showoutofstockprice/ or install it with composer (make sure, you have set your auth.json file correctly, to download from github. You need to set an Auth Token for your github account and put it into the auth.json file).
Install with composer from terminal:

composer config repositories.nordcomputer/showoutofstockprice git "[email protected]:nordcomputer/magento2-showoutofstockprice.git"

composer require nordcomputer/showoutofstockprice <prefered version>

Configuration

You can now configure, if you want to show swatches and the add-to-cart button on the product page from the backend (Stores -> Configuration -> Nordcomputer -> Show Price for out-of-stock products)

Since v0.6 it is possible, to also show swatches and add-to-cart button on category and searchresult pages. Both can be configured individually.

Note

If you have no swatches configured (for example by using Dropdown instead), the Dropdown wont show up. But the Add-to-cart button still works

Contributers

Thank you to our contributers:

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
v0.7 stable Fail Magento 2.4.7-2.4.9 Details 2026-03-30 12:44:50
v0.6 stable Not tested Not yet tested Details 2022-03-31 11:00:26
v0.5 stable Not tested Not yet tested Details 2021-07-07 08:32:52
v0.4.2 stable Not tested Not yet tested Details 2021-06-01 07:09:12
v0.4.1 stable Not tested Not yet tested Details 2021-03-23 07:54:57
v0.4 stable Not tested Not yet tested Details 2021-03-09 00:34:17
v0.3 stable Not tested Not yet tested Details 2021-01-16 00:32:05
v0.2 stable Not tested Not yet tested Details 2021-01-15 23:38:53
v0.1.2 stable Not tested Not yet tested Details 2020-12-11 09:34:39
v0.1.1 stable Not tested Not yet tested Details 2020-07-13 09:23:43
v0.1 stable Not tested Not yet tested Details 2020-07-13 08:28:01

No dependencies declared

This package's composer.json doesn't declare any required, suggested, replaced, or conflicting packages.

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
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. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — 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.

Static analysis results
Tool Status Findings Summary
PHPCS Warning 16 16 warnings (ruleset: Magento2) — 16 auto-fixable with phpcbf
PHPMD Warning 2 2 rule violations (UnusedFormalParameter:2)
Cpd Pass 0
Composer validate Info 1 valid; 1 advisory note (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 4 4
2.4.8 4 4
2.4.9 4 4

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
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

Integration tests results by Magento and PHP version
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

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
OSL-3.0, AFL-3.0
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.