Hi,
I have a problem that i realized when a customer told me, quote “Your site keeps adding and then removing items in the cart when i browse the page”
Actually he was wrong, the site does not add and remove items, the site is fine
But the problem is only visual, related with the little number that displays the current number of items in the mini cart , this one: https://prnt.sc/dyt9B1_hZmju
That number is not loaded with ajax. So if a site has page caching it will cache the text 1, 2 ,3 or whatever the number of items was at the time the page was cached
So lets assume a page was cached from a browsing session that had 2 items in cache. Then the next time ANOTHER visitor visits that page it will display 2 and then after a second or so it will update the number to the actual correct number of items you have
So, it will display 2 and then quickly switch to 0 after 1-2 seconds
Then if you refresh it will do the same
Now if another page is cached from another user’s session you could end up with a different number 🙂
So it is just visual thing
Other themes solved this by simply loading that number with ajax. So, when you visit a page there will be a little spinner that is spinning until the correct number is loading.
Or, leave the number space blank and then the correct number appears
Any chance you are willing to solve this in the upcoming update?
PS: The same thing for wishlist items ofcourse
PS2: Your demos have greater problems with cache . If i go on your demo and add an item to cart it will still display 0
I hope you understand the issue
Currently i disabled page caching on my site to avoid this issue
Thank you in advance