I'm writing a modification where I add products to the shoppingCart with add_cart function. However, in a case where there is already one product with the same id, the product is not added, but the amount remains 1.
Debugging the code it seems that add_cart calls update_quatity, which updates the quantity to 1.
Is the correct way to use add_cart when adding the new product really add_cart($products_id, $number_of_exising+1) ?
To me this is not logical and not in line with the comments in the source file...
By audleman in forum Setting Up Categories, Products, Attributes
Last Post: 9 Jul 2009, 02:06 PM
By enigmabomb in forum General Questions
Last Post: 1 Feb 2008, 11:58 PM
By David Bo in forum General Questions
Last Post: 6 Feb 2007, 05:56 PM
By RC-Hobby4U in forum Basic Configuration
Last Post: 4 Jan 2007, 10:56 PM
Content and Graphics Copyright (c) 2003 - 2013 Zen Ventures, LLC - all rights reserved
Zen Cart® is a Registered Trademark of Zen Ventures, LLC