magento2: Stock filter ( quantity_and_stock_status ) is not displayed in layered navigation

Preconditions (*)

  1. Magento 2.4-develop
  2. Display out of stock product in listing page

Steps to reproduce (*)`

  1. 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 image image
  2. Open any anchor category from the frontend
  3. Attribute quantity_and_stock_status is not present in layered navigation

Expected result (*)

  1. 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 (*)

  1. Attribute quantity_and_stock_status is not present in layered navigation image

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (2 by maintainers)

Most upvoted comments

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?