0
votes

I've got to work on this site which is running Flatsome theme. i've updated both woocommerce and flatsome to it's newest versions. (woocommerce 2.5 and flatsome Version: 2.8.1) and the site works perfectly, except for the mini cart. when an item is added it registers in the mini cart. but thereafter any addition or removal of items are not shown in the mini cart. in layman's terms it freezes! even when the cart is cleared it will show the same initial product(s) added.

Tried disabling all plugins including W3C total cache and still no luck?

Can someone please help me? Pretty please?

PS - If you reload the site while this issue is happening, you can see for a brief moment the actual cart value is there in the mini cart, but it resets back to a wrong value when the site is fully loaded. i believe this is caused by a cookie issue but i don't know where to start .

2

2 Answers

0
votes

Issue was Server caching! Disabled varnish and we're golden.

Hope this help any other facing the same issue as i am. Go to the Wordpress thread here for Mike's Awesome Solution

Thank you everyone who take a look into this! :)

-1
votes

Huh... Luckily i recently worked in the exact teplate for the production of an e-shop. The point is that Flatsome has a mechanism where the DOM is replaced with AJAX after the initial load. So I recommend the use of firebug to see which javascript files are running on load. In my experience the problem was with a global php file under woocommerce plugin. Also the developers of this template have put comments in the code in case someone needs to change something in their site.

To sum up, you should not alter the core files of Woocommerce because it gets messy when the AJAX replacements take place. I recommend you replace the whole woocommerce plugin with a fresh one in a new installation and see how it works.