About: Hiding and not counting out of stock in layered navigation in Magento
Hi, this has boggled us for quite a while. An I did not find a solution. We upgraded to Mage 1.8.1 hoping that it would be fixed.
- We have 19 shirts (configurable products)
- that sell in sizes 38, 39, 40 etc
- some of these shirts are not available in size 38 or 39
- so when a user clicks on the sizes filter in layered navigation it would show only shirts that have stock in that size
But what happens is
Problem A: the count of products per size is 19 everywhere. But this is not correct, some of the 19 shirts are only available in size 38 or 39
Problem B: When I click to filter on size 38, I would expect to see only shirts on the next page that actually are available in size 38
Now how could we solve this? is this a configuration something that I am missing? Show out o stock products yes/no, in attribute settings? or do I need to change this in the code?
Expected behavior would be:
– count only products that actually have a size available
– show only products that actually have a size available
a example http://i.snag.gy/kwhO2.jpg
Help appreciated!!
Best Answer
Answer is here I think
https://digicloud.zendesk.com/entries/22144483-Show-hide-out-of-stock-products-in-Magento
I think we were asking for too much ...
But this is not how it works. It's either on or off
Solution: Setting this to "Show products that are out of stock" to NO seems to solve the issue
How to hide products on Magento store that are "Out of stock" or have a QTY of 0
Hide out of stock message is a configurable item.
Admin >> System >> Configuration >> Catalog >> Inventory >> Stock Options
Display Out of Stock product -> No