Skip to main content

Update sidecart (ajax)

Comments

7 comments

  • Sandra Prunici

    Hi,

    On the Shop page isn't possible to add the Add to cart button. The button from Products element isn't the "Add to cart" element but something like a "Read more" button. By default, it links the visitor to the Product page and on this page, you can add the "Add to cart" button.

    Best regards,
    Sandra

    0
  • Mirsad Marusic

    Hi!

    I don´t think I explained the problem correctly. What I mean is can you make the sidecart update when pressing the "add to cart" button without refreshing the entire page?

    Thanks

    0
  • Sandra Prunici

    Hi,

    Thank you for the clarification. Unfortunately, it isn't possible to update the cart without refreshing the entire page. It is refreshing because it is making a request to the server and therefore it needs to refresh the entire page.
    Let us know if we can help you with something else.

    Thanks!

    Best regards,
    Sandra

    0
  • Mirsad Marusic

    Hi!

    Yes I understand how the process works, but Im wondering if there is any ajax cart plugins that might work or override the page refresh?

    Thanks!

    0
  • Sandra Prunici

    Hi,

    Unfortunately, at the moment we can't recommend a similar cart plugin that will not refresh the page. We are using the cart element proving by the WooCommerce.

    Best regards,
    Sandra

    0
  • Jing Li

    I tried to add a custom short code
    [products limit="30" columns="4" category="mixtes"]
    (limit:total limit, columns:number of listings, category product category link shortcode)
    You can use the woocommerce catalog.
    This way you can click "Add Item" directly on the catalog page to add the item to my cart.


    I am also looking for a way to delete extra items from my cart without reloading the page.
    If you have a good idea, I hope you can share it with me.

    Translated with www.DeepL.com/Translator (free version)

    0
  • Sandra Prunici

    Hi,

    Thank you for sharing here the solution you found. Hope it will help other users.

    Regarding updating the cart without reloading the page - unfortunately, at the moment, we don't have a workaround or a solution for this. In such a way is working the Cart element from WooCommerce https://jmp.sh/TqB65GX.

    Best regards,
    Sandra

    0

Please sign in to leave a comment.