All things Shopify and commerce
How can I automatically update {{ cart.total_price | money_with_currency }} in the cart / cart drawer whenever any product is added or removed?
Currently, if I add or remove a cart upsell product the {{ cart.total_price | money_with_currency }} doesn't refresh unless the page is entirely reloaded or another product's quantity changes.
Hello @Anthony808 ,
Find and check the theme JS function which refresh the cart total on click of default atc button.
Hook the same function when your upsell product added the cart.
Or using own ajax call, rewrite the cart total when bundle product added to cart.
https://shopify.dev/docs/api/ajax/reference/cart
Regards
Guleria
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024