title: Magento set product status to 'Disabled' when qty = '0' (Out of stock)
body: <p>I'm trying to build a Magento store using CE 1.6.2 and I need to set the Product status to "Disabled" when the qty = '0' (Out of stock).  Once a product is sold out, I need it to automatically change the status to disabled as I will never sell this product again. Also once a certain data/time is reached, I'll also need it to automatically disabled the product.</p>
  
  <p>I know Magento offers the option to not show the product once it is sold out but that is not what I'm looking for.  I really need it to disable the product.</p>
  
  <p>OR....</p>
  
  <p>What if instead of disabling the product, when the product is out of stock, is there a way to clear all customers shopping cart of this product.</p>
  
  <p>The problem I"m seeing, is that if a customer has this item in their shopping cart and another customer just bought the last product available, the first customer still sees the item in their shopping cart even though it will not allow them to checkout (since their are no more available).  The only way to empty the cart, is that the customer has to manually remove the product.</p>
  
  <p>So is there a way I can set that when item is out of stock to remove this product from all customer carts?</p>
  
  <p>I'm new to Magento so if anyone can show me the code and how to fix this, I would greatly appreciate it!</p>