woothemes/woocommerce — Issue #555: Feature Request: Permanent User Carts
Author: dominic-p
Created: 2012-02-01 00:43:03+00:00
State: open

Title pretty much says it all. I'm not sure if this has been proposed already or not (apologies if it has been), but I think it would be great if the shopping cart was saved for logged in users. I'm imagining a `user_shopping_cart` meta key in the `wp_usermeta` table that contains a serialized array holding all the cart data that is updated any time the cart is modified. Then, when the user logs out and back in, their session data could be updated based on the cart info in the database.

A potential problem I see could be handling products that have gone out of stock, or been modified in some way after the user placed them in their cart. Amazon gives a nice little notice to the user when such events happen, but I'm not sure how that should be coded.