Trigger Cart Refresh via JavaScript
-
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?
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
Description send privately, with the URL in question 🙂
Attachments:
You must be
logged in to view attached files.
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