![]() |
Displaying all carts items from site - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Displaying all carts items from site (/showthread.php?tid=43327) |
Displaying all carts items from site - El Forum - 07-07-2011 [eluser]neosable[/eluser] I have a catalog/shipping cart site using CI , now client wants to see what people have in their cart even before they place an order. My question is what will be the best way to do this? I am thinking about config CI to use database session storage and then from there pull all the carts info but the way Ci storage that data is a bit complicated Displaying all carts items from site - El Forum - 07-07-2011 [eluser]bubbafoley[/eluser] I would create a temp_orders table in the database, and save the cart data and user id there whenever something is added or updated in the cart. You can use the session id as a key to keep track of changes made to different carts. |