The shopping cart is auto saved for the session. When you log out, the session is destroyed. If a customer wants to save their shopping experience for another time, they can add their cart to a shopping list. This will be saved to the database and not to the sesion, so the customer can log out, log in and reload their shopping list to cart. If you wanted to, you could create a service that auto creates a shopping list when the customer logs out (you'd want to call it a different type then the ones currently in use) and then auto check that when the customer logs in. However, I don't think this is the default behavior that most companies would want.
We have a supplier that saves our carts and gives us an option to finish our order when we log in, but to auto reload it would be inconvenient. Afterall, there was a reason the customer logged out. --- rohit2006 <[EMAIL PROTECTED]> wrote: > > Hi, > > I see a strange behaviour in the shopping cart > items, the items added to a > shopping cart prior to login are not saved or added > to the cart once the > customers logs in and if he has added items in his > shopping cart previously. > The behaviour can be replicated as follows: > > 1) create a user account in the ecommerce. > 2) add items to shopping cart and then log off > without completing the > checkout. > 3) again add some different items to your cart as a > anonymous user and then > login with the user ID created in step 1. > > Ideally the items added in both the sessions should > be now present in the > shopping cart, but strangely only the items added in > first session in step > 2, is present in the cart. The items added in the > last step, before the > customer logs in, are lost. > > I think the new items should be added to the cart > and the cart should have > all the items added by the customer in all sessions > where the checkout was > not completed and the customer had not purposefully > removed the items from > the cart. I am not sure if there is a settings > problem, i have the auto-save > cart enable in the store and i am using the latest > SVN. > > Hope somebody looks into this. > > Rohit > -- > View this message in context: > http://www.nabble.com/Login-and-items-in-Shopping-cart.-tf2246796.html#a6231356 > Sent from the OFBiz - User forum at Nabble.com. > >
