TTYd Posted June 25, 2009 Share Posted June 25, 2009 Thanks for the previous help, think I just have one last question! This is a simplified version of the scenario, but whenever the customer buys an item I want another item to be automatically added to the cart. I have experimented with adding $cart->add_cart(35,1); to application_top.php, which does indeed add pid35 to the cart, but it does not increment the quantity for each item that is ordered (there is only ever 1 in the cart). How does add_cart work exactly, is there a parameter that will do soemthing like; $cart->add_cart(35,existing quantity+1) so that each new item causes the number to increase? Thanks in advance! Link to comment Share on other sites More sharing options...
TTYd Posted June 25, 2009 Author Share Posted June 25, 2009 Worked it out myself so this can be deleted. $cart->add_cart(35, $cart->get_quantity('35')+1); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.