tohvanah Posted September 28, 2010 Posted September 28, 2010 I'm passing product IDs in an html variable to this php script: $queryString = $_SERVER['QUERY_STRING']; require('includes/application_top.php'); $cart->add_cart($queryString, 1, array(6 => 15)); When you add an item, that already exists in the Cart, I would like the quantity increased by 1. Right now, executing a second or more times does nothing, to the item already added to the cart initially by this method.
tohvanah Posted September 29, 2010 Author Posted September 29, 2010 fixed. changed the pertinent line to: $cart->add_cart($queryString, $cart->get_quantity(tep_get_uprid($queryString, array(6 => 15)))+1, array(6 => 15));
Recommended Posts
Archived
This topic is now archived and is closed to further replies.