I’m hoping someone can help me here. I’m looking for a way to change the Status from ‘Enabled’ to ‘Disabled’ when a product is sold ouit (qty=0). I know Magento changes the Stock Availability to “Out of Stock” but it still leaves the Status as ‘Enabled’.. Is there an easy way to change the code to say when qty =’0’ or out of stock to change status to ‘Disabled’
You can configure Magento so that “out of stock” products will not be displayed in the fontend.
Check the screen short.
Yes I saw this option. The problem is that if someone else had this product in their shopping cart before it was sold out, it does not remove the product from the shopping cart. The customer can’t purchase the product, but the item remains there unless they manually remove it.
For my store setup, if the product is sold out (out of stock), I need Magento to remove this product from shopping carts of other customers.