Cart in menu resets to empty on pageload
-
Hi there,
somewhen with the last versions of either ‘Woocommerce’ or ‘WooCommerce Menu Cart’ I started to encounter a strange bug which I’m not able to find the source for.
The problem is as follows:
1. I visit my page (https://wamiki.de/shop). You can see the menu cart working in the top right corner. It is configured to only show the current value of the cart. When you have nothing in your cart it correctly shows 0,00 €.
2. I add a product to my cart. The product is added correctly to the cart, BUT the menucart will still show 0,00 €
Now in debugging I encountered all of the following Informations which might help find the source of this bug:
a) when you have products in your cart and the page starts loading, the menu cart will show the correct amount in the menu, but at some point (after a few milliseconds) some javascript kicks in and resets the amount to 0,00 € and also changes the href for the menu cart from /cart to /shop.
b) I disabled all other plugins (only Woocommerce and Woocommerce Menu Cart are running)
c) I switched the theme to twentytwenty and others, still same bug.
d) I can reproduce the problem in the latest versions of Firefox and Google Chrome
e) If I open a new browser window! (not tab!) to browse to wamiki.de suddenly all tabs in all windows will show the correct amount in the menu cart.
f) when doing e) there will be an xhr post to https://wamiki.de/?wc-ajax=get_refreshed_fragments on all tabs in all windows
please help
The page I need help with: [log in to see the link]
- The topic ‘Cart in menu resets to empty on pageload’ is closed to new replies.