PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 5/3/2020 3:07 PM by  Will Strohl
Add to Cart without Redirect
 5 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Page 1 of 212 > >>
Author Messages





Basic Member






--
11/2/2017 11:39 AM
    A lot of my users are frustrated that they get directed to the cart page and then have to click back or continue shopping to go back to the category they were looking at. Is there a way to add an item to the cart and not redirect the user to the cart page and display a message instead? I have looked at the extension points but it seems that they will always redirect. I have also tested using the existing links to add the item to the cart and those redirect as well. The only thing I can think of is to create my own WebAPI endpoint and add the item to the cart and display a message on a successful ajax call return. I am currently testing and developing on Hotcakes version 2.0.8





    Basic Member






    --
    11/18/2017 11:56 PM
    I ended up creAting my own endpoint to call on button click. I am testing with various users to see what they think of the flow.





    Veteran Member






    --
    12/19/2017 2:59 PM
    From my experience, the current out-of-the-box implementation is by far the most common, but I can definitely see a SPA approach being beneficial to many stores. Those stores are primarily the type where customers are ordering multiple products in the same order (as the default activity for 80%+ of their customer base). I'd say the majority of online stores are more of a use case where a single product is purchased, and then you remarket to the customer to get repeat orders.

    I've created an Issue to potentially get this added as a new feature in the future.

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

    Please note that it would require the following updates as prerequisites.

    1 - The mini cart module will need to be a skin object.
    2 - The mini cart will need to be rewritten to be a SPA app.
    3 - The mini cart will need to include a listener to know instantly when a product is added to the cart.
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    Basic Member






    --
    12/19/2017 4:25 PM
    Thanks Will!





    Basic Member






    --
    4/30/2020 6:25 PM
    Hi Guys, did this get completed? I have a couple of clients how would like to implement this.
    You are not authorized to post a reply.
    Page 1 of 212 > >>


    Loading
    • Sign-up for the Hotcakes Community Newsletter: