Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Flavio Spezi 128 posts 314 karma points
    Dec 22, 2014 @ 18:49
    Flavio Spezi
    0

    Basket is empty after restart

    I look that the Basket is empty after a application restart.

    I am as anonymous member, and AnonymousCustomersMaxDays setting is 7.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Dec 22, 2014 @ 20:14
    Rusty Swayne
    0

    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

     http://[hostname]/umbraco/Merchello/ScheduledTasksApi/RemoveAnonymousCustomers
    

    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.

  • Flavio Spezi 128 posts 314 karma points
    Dec 27, 2014 @ 11:55
    Flavio Spezi
    0

    There is a trick to preserve the anonymous Basket by a reset of the application?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Dec 29, 2014 @ 17:10
    Rusty Swayne
    0

    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.

  • Martin 81 posts 246 karma points
    Jan 05, 2015 @ 04:20
    Martin
    0

    "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.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jan 05, 2015 @ 17:12
    Rusty Swayne
    0

    Hi Martin,

    Are you adding something to the anonymous basket before signing in?

  • Martin 81 posts 246 karma points
    Jan 05, 2015 @ 17:16
    Martin
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft