magento2: Stock filter ( quantity_and_stock_status ) is not displayed in layered navigation
Preconditions (*)
- Magento 2.4-develop
- Display out of stock product in listing page
Steps to reproduce (*)`
- Configure
quantity_and_stock_status attribute according https://docs.magento.com/user-guide/catalog/navigation-layered-filterable-attributes.html#step-1-set-up-the-attribute-properties

- Open any anchor category from the frontend
- Attribute
quantity_and_stock_status is not present in layered navigation
Expected result (*)
- Attribute
quantity_and_stock_status is should be present in layered navigation or ‘Use in Layered Navigation’ option should be disabled for this attribute
Actual result (*)
- Attribute
quantity_and_stock_status is not present in layered navigation

About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (2 by maintainers)
I created an extension, that sets a newly created attribute “filter_stock” to simple products according to the stock status via cronjob - its not a perfect solution, but it may help somebody: https://github.com/nordcomputer/magento2-stockfilter
Hi @magento-engcom-team, which version or PR fix this problem?