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.
Build Tests
Code Quality
Tested on Magento 2.4.9
Recent Test History
Each release is tested against the latest Magento version at that time.
Top Contributors
View LeaderboardShare This Module's Status
README
Loaded from GitHubMagento 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.