The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

1090 Modules
607 Ready
483 Need Help
🏆 Leaderboard
Actively Maintained v0.1.0

Stock Status Filter for Magento 2

buhmann/module-stock-status

Adds a stock-status filter attribute (updated via cron) that lets shoppers filter products by availability and hides configurable products whose matching simple products are out of stock.

1
Downloads
Below average
0
GitHub Stars
Today
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
15 warnings
L1 PHPStan

Tested on Magento 2.4.9

Recent Test History

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

v0.1.0 on Magento 2.4.9
Jun 15, 2026
v0.0.1 on Magento 2.4.9
Jun 1, 2026

Share This Module's Status

Stock Status Filter for Magento 2 Magento compatibility status badge

README

Loaded from GitHub

Magento 2 Buhmann Stock Status Filter

Overview

Adds a configurable stock status filter to Magento layered navigation (category page). The filter is fully integrated with Elasticsearch/OpenSearch and supports custom positioning, configurable URL parameters, and multi-language labels.

Features

  • Full Elasticsearch/OpenSearch Integration — filter works via search engine aggregates, no performance impact
  • Configurable Filter Position — place filter at the beginning, end, after specific attribute, or at custom position
  • Custom URL Parameter — change URL parameter name (default: stock_status)
  • Selectable Options — show "In Stock", "Out of Stock", or both
  • Custom Filter Title — change the filter display name in layered navigation
  • Admin Configuration — all settings available in Stores → Configuration → Catalog → Layered Navigation
  • Multi-language Ready — includes English and German translations
  • Magento 2.4.7+ — compatible with OpenSearch and Elasticsearch

Requirements

  • Magento 2.4.7 or higher
  • Elasticsearch 7.x / 8.x or OpenSearch

Installation guide

This module is available on Github.

composer require buhmann/module-stock-status
php bin/magento module:enable Buhmann_StockStatus
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex
php bin/magento cache:flush

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.