The anonymous customer key is stored in a session cookie, so when you restart the application a new session is generated giving you a new anonymous customer and thus a new basket. This is by design.
In order to persist a basket between sessions, you need to create an actual customer by having a 'member' log in with a member type configured in the merchello.config file. Default member type is 'Customer'.
Merchello will automatically migrate an anonymous customer basket to a customer basket when a login status is changed.
"Merchello will automatically migrate an anonymous customer basket to a customer basket when a login status is changed."
Rusty, this is no longer happening for me although was working for me before 1.6 upgrade. After logging in the customer is picked up as a persisted Merchello customer but the basket items are discarded. Probably something on my end.
Basket is empty after restart
I look that the Basket is empty after a application restart.
I am as anonymous member, and
AnonymousCustomersMaxDays
setting is7
.Anonymous customers do not persist baskets as it is a session cookie.
The AnonymousCustomersMaxDays is a way to clean up anonymous customers and their basket data after a certain period of time.
You can hook this up by adding a scheduled task in the UmbracoSettings.config file with
This handler looks at the AnonymousCustomersMaxDays setting and removes any records older than the value (default is 7 days).
Some people may want to keep the data for a period of time to report on abandoned baskets for example.
There is a trick to preserve the anonymous Basket by a reset of the application?
Hi Flavio,
The anonymous customer key is stored in a session cookie, so when you restart the application a new session is generated giving you a new anonymous customer and thus a new basket. This is by design.
In order to persist a basket between sessions, you need to create an actual customer by having a 'member' log in with a member type configured in the merchello.config file. Default member type is 'Customer'.
Merchello will automatically migrate an anonymous customer basket to a customer basket when a login status is changed.
"Merchello will automatically migrate an anonymous customer basket to a customer basket when a login status is changed."
Rusty, this is no longer happening for me although was working for me before 1.6 upgrade. After logging in the customer is picked up as a persisted Merchello customer but the basket items are discarded. Probably something on my end.
Hi Martin,
Are you adding something to the anonymous basket before signing in?
Hi Rusty,
yes, looks like the issue has been identified by another user and detailed in this thread http://our.umbraco.org/projects/collaboration/merchello/merchello/60169-Anonymous-Basket-Signed-in-member-Basket-Empty
is working on a reply...