I've added a span into cart.liquid, however, when the user changes the quantity of the item this causes the cart to reload and the span I added disappears.
I've looked into theme.js and found that when the quantity changes it triggers the updateCart function. What I can't seem to figure out is where it's getting the re-rendered cart code from?
If the user refreshes the page after the cart re-renders the span appears again.
Does anyone know where I can change the code that the re-rendered cart is using?
Thanks in advanced
Solved! Go to the solution
This is an accepted solution.
Please share a preview link of your store. A possible cause of the issue is cart data is updated via ajax when quantity change.
There might be a snippet with handlebar js or theme.js code