Help centre

Cross Sell
Education & Resources

Cart total or cart count is not refreshing after adding items from popup or Add to Cart buttons

Last updated on
September 26, 2023

If you have activated our Upsell Popup and/or use our Add to Cart buttons from Settings -> Quickview & Upsell Popup, but the cart total or count is not refreshing after items have been added, then you might need to make use of our Cart refresh function in the Advanced section.

If you're not familiar with javascript or don't have a developer on hand, please get in touch so we can assist with this, otherwise follow instructions below.

To make use of the Cart Refresh Function, you can use one of several strategies:

1) find the function in charge of updating the cart count/total in your theme's javascript files (usually found in the theme.js or shop.js files)

Then test that code in Google Inspector's console after adding an item from the popup or ATC buttons. If it works, you can add the code in Settings -> Quickview & Upsell -> Advanced

2) Alternatively, if you can update your cart by clicking on the cart icon, you can trigger a click event on the cart element's CSS selector (see below)

$("#CartToggleItemCount").trigger("click");

3) Lastly, if all else fails, you can force a pageload refresh by adding this code:

window.location.reload(true);

Questions? Comments? Suggestions? Get in touch at support@csell.co

Still need help? Email us at support@csell.co.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Supercharge Sales with Our Customizable Cross-Selling & Upselling!