It works on my localhost and the staging site but not on the live server
I think it may be to do with SSL
Add to cart no longer works - by andyreece
Solved6 replies2 participantsUpdated by Robert Hall
-
6 Answers
Please, contact administrator
for this information.#117822 CopiedHello,
Please provide us with wp-admin and FTP credentials in Private Content.
Regards,
Robert Hall#117826 CopiedHi
It’s not SSL I’ve narrowed it down to caching
I’m using WP Engine and the pages are cached, so when the code in script.js runs to get the updated pagejQuery.get(this_pageIe, function(data) { var newCartHtml = jQuery(data).find('.widget_shopping_cart').html(); jQuery('.widget_shopping_cart').html(newCartHtml); });Is getting the same page it’s on, this is cached so returns no update
Also when you then go to a new page or refresh then the cart comes back emptyCheers
Andy#117979 CopiedHello,
Does it works when WP Engine plugin is disabled?
We need wp-admin and FTP credentials to check it more deeply. Please provide them in Private Content.
Regards,
Robert Hall#117985 CopiedHi
I have now resolved this with WP Engine by removing the necessary Woocommerce pages from the server level cache and also Woocommerce cookies as these were being cached as well
All is now fine
Cheers
Andy#117989 CopiedWe’re glad to hear it.
If you have any questions feel free to contact us.Regards,
Robert Hall#117997 Copied -
The issue related to '‘Add to cart no longer works’' has been successfully resolved, and the topic is now closed for further responses















