avoid add to cart when zero quantity
how can i tell shopping cart not to add any item when there is zero quantity available in the data table. is there any way i can achieve that. please help
thanks very much for help.
how can i tell shopping cart not to add any item when there is zero quantity available in the data table. is there any way i can achieve that. please help
thanks very much for help.
you would need to hand code an if statement around the add to cart button to only show it if the column was not equal to 0:
<?php if($row_RecordsetName['QTYColumn'] != 0) { ?>
add too cart button code here
<?php } ?>
thanks jason, thanks very much for make me achieve that, the if statement work very good on the ecart
can ecart automatically reduce the number of quantity in the data table when it add to the shopping cart?
No, eCart will not do this automatically, you would need to add functionality to manage the inventory.
I wouldn't do this when the item is added to the cart though, I would would do it after the transaction has processed. That way if they add the item to the cart, but dont checkout, it is still available for the next customer.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.