flexi cart - A comprehensive shopping cart library for CodeIgniter |
[eluser]haseydesign[/eluser]
Hey koichirose, To give you some idea of whats happening there, session data and database data purposely contain different data. The session needs to contain much more data that is used internally by the library to help work out whats happening with the live data within the cart, whilst the database data is a primarily a readable summary of order data. It is possible to save an order to the database, then close your browser (so the session data is deleted) and then reload the saved database data back into the users session. When reloading the database data back into the session, the library internally repopulates all of the 'missing' fields - however, you must use the libraries functions to do this. To see an example of this feature in action, try out the following page : http://haseydesign.com/flexi-cart/standa..._cart_data Note that currently, only the third date list in ''Load Saved Cart Data' is working (A cockup by me trying to fudge the serialized strings using SQL rather than the library - this error should not happen when using the library and affects this demo only). If you add some items to your cart, then save the cart via this page, then load another cart, you will be able to see the feature in action. The above page allows a user to save their cart session to the database and then reload it again from the database into their current browser session. This demo page and its functionality can be viewed via the 'load_save_cart_data', 'save_cart_data' and 'load_cart_data' methods in the 'standard_library.php' controller. The user guide page http://haseydesign.com/flexi-cart/user_g...data_admin details the functions required for this feature. If all is still not clear, let me know. Cheers, Rob |
Welcome Guest, Not a member yet? Register Sign In |