title: How can I implement stock filter in Magento way?
body: <p>Out of stock products are visible in my magento website. I want a custom filter in the layered navigation which would say "Exclude out of stock" and when customer clicks on it the out of stock products should be hidden.</p>
  
  <p>(by default I enable showing/displaying out of stock products under System-> Configuration-> CATALOG-> Inventory)</p>
  
  <p>i.e. I want the customer to control whether he/she should see the "out of stock" products or not.</p>
  
  <p>example
  <a href="http://www.flipkart.com/mobiles/samsung~brand/pr?sid=tyy,4io&amp;_pop=flyout&amp;otracker=hp_submenu_mobile" rel="nofollow">this link</a></p>
  
  <p>can anyone help please? I want this to be done in magento way...</p>