Ramesh Posted April 19, 2003 Share Posted April 19, 2003 Hi all, quick question: What code changes are required to only allow qty=1 ? example, only products with a qty=1 allowed per shopping trip. (differen products are allowed). and trying to add a product which is already in cart results in message: 'That item is already in your cart !' The qty section form the shopping_Cart will of course need to be removed. users can set qty=0 using the remove action. anyone ? Special Effects / 3d + Flash Link to comment Share on other sites More sharing options...
Ajeh Posted April 20, 2003 Share Posted April 20, 2003 Take out the qty box on the shopping cart. Make buy now and in cart buttons always be like the add by testing is the product in the cart with the $cart->in_cart($what_products_id) Make the add case add as 1 and not +1 Link to comment Share on other sites More sharing options...
Ramesh Posted April 20, 2003 Author Share Posted April 20, 2003 thanks Linda...this should be easy. ..I'll give it a go and report back. Special Effects / 3d + Flash Link to comment Share on other sites More sharing options...
Ramesh Posted April 22, 2003 Author Share Posted April 22, 2003 this thread continues here: http://www.oscommerce.com/forums/viewtopic.php?t=40365 Special Effects / 3d + Flash Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.