I have this problem, that when I add a item to cart, quantity goes up, but price doesn't. Only after I refresh the page, I see the correct price and quantity.
And also, although quantity goes up, the word "item" or "items" disapears, and comes back only after refresh.
For example, empy cart will say : "0 Items $0.00" as it should.
Then I add an item to cart and cart will say "1 $0.00".
And only after refresh the cart will say the correct "1 Item $40.00".
What is causing this issue? I am using Ajax api to update these prices.
Here is my header.liquid code: