Home Forums WoodMart support forum Trigger Cart Refresh via JavaScript

Trigger Cart Refresh via JavaScript

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #439501

    support-wordpress
    Participant

    Hi! We are using a custom REST API for an additional add to cart function, but the cart/sitecart does not refresh automatically. Is there any way to refresh it via JavaScript/AJAX/whatever? If I move to antoher page and back to our Woodmart Website, it is refreshed – so I assume there is some way to trigger the cart refresh without a page reload?

    #439518

    Artem Temos
    Keymaster

    Hello,

    Please, describe step-by-step how to see this issue on your website and send us a link. We will check what can be done there.

    Kind Regards

    #442012

    support-wordpress
    Participant

    Description send privately, with the URL in question 🙂

    Attachments:
    You must be logged in to view attached files.
    #442014

    Artem Temos
    Keymaster

    Hello,

    Sorry, but we don’t have a custom trigger for this. You need to customize your custom JS function to make it also update the cart. You can check how our custom add to cart action works in this file js/scripts/wc/addToCartAllTypes.js

    Kind Regards

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)