Thanks that seems to have done the trick. But in some cases the cart doesn't get emptied on logout and remains static (has the same contents) even if you login again with a different user.
Also, when you login, the contents added before logging in (or as a guest user) gets totally wiped out and is replaced by the cart for the user (ie the cart with contents the user had added on his previous logged in session). Anyway to fix this? i.e. the cart contents from prior to logging in should be clubbed with the contents loaded after logging in David E Jones wrote: > > > The field that turns this on and off for a store is > ProductStore.autoSaveCart. > > -David > > > On May 30, 2008, at 12:43 AM, jaki wrote: > >> >> Sorry to be resurrecting this ancient thread, but which is this flag >> mentioned in the quoted post? Kindly help me here as my ofbiz seems >> unable >> to persist a shopping cart beyond the current session >> >> >> Andrew Zeneski wrote: >>> >>> There is code in place currently which will persist the shopping cart >>> into a shopping list each time it modified. There is a flag I believe >>> on the product store which enables/disables this behavior. The cart >>> is reloaded each time the user returns based on what is currently in >>> that special purpose shopping list. >>> >>> Andy >>> >>> On Dec 7, 2005, at 8:39 AM, <[EMAIL PROTECTED]> >>> <[EMAIL PROTECTED]> wrote: >>> >>>> Hi All, >>>> >>>> Can the shopping cart be made persistent for an anonymous journey >>>> by some configurable parameter. Currently OOTB, the shopping cart >>>> is a session based object so I would lose my shopping cart once I >>>> lose the session. >>>> >>>> regards, >>>> >>>> Jitender >>>> >>>> _______________________________________________ >>>> Users mailing list >>>> [EMAIL PROTECTED] >>>> http://lists.ofbiz.org/mailman/listinfo/users >>> >>> >>> _______________________________________________ >>> Users mailing list >>> [EMAIL PROTECTED] >>> http://lists.ofbiz.org/mailman/listinfo/users >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Users---Re%3A-Shopping-Cart-Persistence--tp1832282p17552652.html >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/Users---Re%3A-Shopping-Cart-Persistence--tp1832282p17559290.html Sent from the OFBiz - User mailing list archive at Nabble.com.