PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 11/25/2018 6:26 PM by  MooreCreative
Cart session for users
 2 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Author Messages





New Member






--
10/19/2017 8:07 PM
    Hi Hotcakes,

    Want to ask how does this work....

    If a user Mia logged into her DNN account and added several items into the shopping cart from FireFox on her desktop at home. Several days later, she uses her laptop from her office and logged in into the website using Chrome.

    At the moment, items in her shopping cart is different by machine. Therefore she does not know what did she putted into her cart few days ago with her desktop at home.

    Can this be changed to bind the cart information by DNN account? Or is there a return url to reference a user's stored session so that the user can see what is in their cart if they are using different machine? The purpose of this would be so that we can restore user sessions if they click through our abandoned cart email on a new device.

    Thanks for your help in advanced!
    Jack





    Veteran Member






    --
    10/26/2017 2:30 PM
    This is a fantastic question. As you'll see in the support article below, the cart session is either saved to a browser session or browser cookies.

    https://hotcakescommerce....8664636-Admin-Orders

    So won't be able to retrieve the cart on another web browser, regardless of the setting. However, what you're detailing is something I've wanted to implement for a long time now. I've created an issue for everyone to collaborate on in GitHub.

    https://github.com/Hotcak...merce/core/issues/46

    In the meantime, it would be possible to duplicate this behavior on your own by throwing a little bit of extra code in your custom viewset to do the following:

    [list]
    [*] Determine if the visitor is logged in
    [*] If logged in, look for any previous orders (carts) that haven't been completed
    [*] If an abandoned cart is found, assign the respective cart cookie to the browser session
    [/list]
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    Basic Member






    --
    11/25/2018 6:26 PM
    Hi All, we my have a client project coming up where we could use this functionality. I think it would be a great addition to the system and, although I could see how we could build it one-off as Will describes, I'd love to see it as an enhancement to the platform.

    I'll chime in on the github thread and see if we can get something moving for this.

    - Ryan
    You are not authorized to post a reply.


    Loading
    • Sign-up for the Hotcakes Community Newsletter: