![]() |
Cart Class - Update price? - 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: Cart Class - Update price? (/showthread.php?tid=30699) |
Cart Class - Update price? - El Forum - 05-23-2010 [eluser]KazooSoft[/eluser] Hey all, I have a complicated product which basicly gets cheaper the more you buy... Many around. To do this im handling a If statment which will determing every time the cart is updated. It works perfectly for the add product, but not when updating. Whats wrong with this? Code: $data = array( Is it not possible to update the price? Cart Class - Update price? - El Forum - 05-23-2010 [eluser]KazooSoft[/eluser] For the record. It produces no errors and $cost is calculated earlier on perfectly. Cart Class - Update price? - El Forum - 05-23-2010 [eluser]KazooSoft[/eluser] If anyone has a better solution i had to do this.. Its a big bodjey: Code: for($i=0;$i < $total;$i++) |