X-mini-cart dropdown not updating items

Ok, so I’ve given up trying to fix this (have already done all the obvious things like disabling other plugins to check for conflicts etc.) so looking for help.

I have a mini-cart in the PRO header here: https://mollykarloff.co.uk/super-ep/

Adding an item into the cart takes the user straight to checkout and does update the item count & cost of the icon (I’ve customised it a bit), but the items aren’t listen in the drop down.

minicart_items_total_icons_works

You can get it to update by visiting a page that had WooCommerce products on it, such as one of the following:

I can’t see anything in developer tools console (I could just be being blind and not seeing the wood for the trees), and the only thing that seems to get the dropdown to populate with the cart items, is visiting a page with WooCommerce products on that page (the update doesn’t happen straight away either, but after second or two of the page loading).

What gives?

Hope you can help…

Hello @sguilliard,

Thanks for writing in!

Please be advised that the mini cart dropdown depends on WooCommerce Fragments cache. It is also depending on the AJAX add to cart behaviour. Please go to WooCommerce > Settings > Products and then enable the AJAX add to cart button.

Clear your browser cache or use private browsing mode before testing your site again. Kindly let us know how it goes.

The problem turned out to be almost as simple as your suggestion (which was what reminded me). I had disabled Woocommerce scripts etc. on all but Woocommerce pages. However, since that was done, I have added other pages which have WC functionality (but had everything disabled as a result).

A quick edit of the function in the fuunctions.php to check for the addtiional pages solved the problem.

Thanks anyway! :slight_smile:

Glad to hear you got it sorted, @sguilliard.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.