[eluser]koichirose[/eluser]
I don't really understand how to offer a seamless experience for both logged users and guests.
Examples:
- A guest puts items in the cart. The guest logs in -> items are saved to the db in addition to the session. (I guess I could manage this in the login function, calling save_cart_data() right there, or is there something better?)
- A guest wants to view his cart -> load items from the session. (this works great)
- A logged-in user wants to view his cart -> load items from the db (this I don't understand: saved cart data on the db doesn't include some fields. This is the same product saved in the session and saved on db and unserialized: