This is what I suggested for and extra check on stock:
http://www.zen-cart.com/forum/showthread.php?t=193409&highlight=extra+check+stock
You might adapt that to your code and see if it helps ...
Type: Posts; User: Ajeh
This is what I suggested for and extra check on stock:
http://www.zen-cart.com/forum/showthread.php?t=193409&highlight=extra+check+stock
You might adapt that to your code and see if it helps ...
NOTE: v1.5 has a clean up on restored carts for when Products or Attributes are deleted from Products to clean up the shopping cart ...