Need a little help with the Cart class - 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: Need a little help with the Cart class (/showthread.php?tid=25236) |
Need a little help with the Cart class - El Forum - 12-05-2009 [eluser]bdegier[/eluser] Hello, I'm spending my saturday finishing a simple shoppingcart i started building a while ago. I'm now trying to write some sort of an update cart function. - Before I continue: I'm not so experienced in the PHP field - I want users to be able to change the value of the quantity text fields, then press a button and the cart updates the quantity of all products currently in the cart. The User Guide has a short explanation about this: http://ellislab.com/codeigniter/user-guide/libraries/cart.html But i can't quite figure out how to get the rowID's for the products and use this to update the cart. I wrote a very basic function to test the updating which works (hardcoded): Code: function updateCart() { All help will be GREATLY appreciated! Thanks, Bento Need a little help with the Cart class - El Forum - 12-05-2009 [eluser]bdegier[/eluser] Got PMed this tutorial which somehow i was unable to Google http://nuazul.net/php/shopping-cart-using-codeigniter-1-7-2-cart-library-part-2.html Cheers. |