I have a cart icon plus amount of items in cart in the header.
This doesn’t update if i enable ajax on shop page:
Then i also noticed that the items don’t update when you are in the cart page and changing quantities or click remove item.
It seems the items in the mini cart only update on page refresh. How can we make it so that the items in the mini cart are updated when adding to cart (ajax), change quantity in cart and remove item in cart?
Yes i tried a couple of codes that i found online but none of them actually worked properly. But didn’t tried the one you shared.
For now i just decided to go full block theme and use the mini cart block from WooCommerce in the header. Does exactly what i want out of the box! So that’s great.