Recently i add a div to my cart page with something like "for just more 10$ you can have free shipping"
The 10$ is a variable that is calculated with (free shipping threshold) minus (cart total).
This message is working fine, but the value does not update automatically when item quantities are updated, just when the user refreshes the page manually.
How can i turn on the autorefresh? i think i need to create my function in theme.js file. Can anyone give any tips here?
Welcome to Shopify Community.
Aibek is here from Speedimize.io
Can you share with us your shop URL?
You need to write a script to trigger autorefresh. Or edit the place where autorefresh occurs. We will study and, if possible, send you a solution.