tohvanah Posted September 28, 2010 Share 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. Link to comment Share on other sites More sharing options...
tohvanah Posted September 29, 2010 Author Share 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)); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.