title: How to hide products without stock from layered navigation
body: <p>I have set all options in the Magento catalog configuration to hide out of stock products. This works fine, except for the layered navigation. I got a product attribute for the size of a product. So for example, I got 15 products with size 38 and 7 of them are out of stock. Still, in the layered navigation it says there are 15 products with size 38. Also when clicking the filter, all 15 products appear.</p>
  
  <p>I found a lot of similar questions, only all are meant for Magento versions 1.3 and older (since it seems older Magento versions didn't had the option to hide out of stock products at all).</p>
  
  <p>Could it be I missed a setting in the backend, on the attribute or stock configuration which causes this conflict?</p>
  
  <p>Since I thought it was kind of a Magento bug, I also searched trough the core code of the layered navigation, but couldn't find a quick solution.</p>
  
  <p>Anyone who can help me out?</p>
  
  <p>Edit: Forgot to mention the products are configurable products. It looks like it only looks at the main product.</p>