![]() |
Checking Contents of $this->cart->contents() Array - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Checking Contents of $this->cart->contents() Array (/showthread.php?tid=29198) |
Checking Contents of $this->cart->contents() Array - El Forum - 04-01-2010 [eluser]Unknown[/eluser] Hi All, Does anyone know a way of checking if a product with a certain name exists in the $this->cart->contents() array? I need to add a tax to the cart but only if a certain item exists in the cart. Thanks! Andy Checking Contents of $this->cart->contents() Array - El Forum - 04-05-2010 [eluser]bluepicaso[/eluser] well its my first turn to the cart, I may suggest you to please add the tax to each product while adding to the cart. Hope this solves. I may be poor at economic facts, Sorry for that. |