Home › Forums › WoodMart support forum › "NO PRODUCTS IN THE CART " after Add to Cart
"NO PRODUCTS IN THE CART " after Add to Cart
- This topic has 9 replies, 4 voices, and was last updated 6 years, 2 months ago by addy.
-
AuthorPosts
-
May 19, 2018 at 12:21 pm #58436
mazs91ParticipantDear Support,
After I click the Add to Cart button, “NO PRODUCTS IN THE CART.” is displayed in the mini-cart. This does not happen all the time, sometimes the product is successfully added, sometimes i get this message.
I have tried to disable all plugins but I am unable to figure out the exact reason.
Do you have any idea which settings can cause this?
Screenshot in private.
May 19, 2018 at 12:40 pm #58438
mazs91ParticipantHi Support,
It seems like a caching problem. I am using Wp Rocket. Please check the below links.
https://wp-rocket.me/blog/using-woocommerce-dynamic-cart-wp-rocket/
“Recently, however, I ran into a little problem with the mini cart that WooCommerce offers and that you can use, for example, in your webshop header. The mini cart was not Ajax-ed, so the content was being cached and sometimes made it look like you didn’t have any items in your cart even when you did. By reaching out via Twitter I found out that the only way to solve this correctly was by retrieving this mini cart via WP AJAX. Since I promised the helpful team at WP Rocket a write up, I’ll tell you how I did this.”May 19, 2018 at 1:41 pm #58448
Elise NoromitMemberHello,
WP Rocket influences the WooCommerce functionality. If you test the issue with any default theme you will have the same problem. Our theme does not influence.
Best Regards
May 20, 2018 at 12:07 pm #58541
mazs91ParticipantDear Team,
Right now WP Rocket is deactivated. I am facing issues with Cloudflare. Apparently, cloudflare is caching the mini cart page. When I clear cloudflare cache the shopping cart dropdown widget works for 1 Add to cart. If I close the window and log in again in Incognito mode, Do add to cart then I get “NO PRODUCT IN THE CART” message in the mini cart. At the same time, when I access the cart page the product is visible.
https://i.imgur.com/YAdmzvl.jpg
It seems that cloudflare is caching the AJAX. I have found the below article which discusses how to stop ajax caching, but I have no idea what page rule I should add..
https://blog.cloudflare.com/ecommerce-best-practices/
Please let me know how to sort this out as my customers are seriously affected because of this.
Mazhar
May 20, 2018 at 3:27 pm #58556
Artem TemosKeymasterSince this functionality is related to WooCommerce plugin you need to either contact cloudflare support or WooCommerce. We don’t have an instruction for this.
May 29, 2018 at 6:38 pm #60325
mazs91ParticipantDear Support,
I have deactivated Ajax Add to Cart as mini-cart was not updating after pressing the ATC button.
Currently, after pressing add to cart button, the page updates but the minicart does not show automatically. Is it possible to show the minicart sidebar automatically after non-ajax Add to cart?
Mazhar
May 30, 2018 at 6:48 am #60356
Elise NoromitMemberHello,
No, in order to show products in mini-cart AJAX should be activated.
Best Regards
June 2, 2018 at 9:15 pm #60879
mazs91ParticipantDear Support,
Is Woodmart compatible with the Woocommerce Currency Switcher? The minicart widget is showing “NO PRODUCTS IN THE CART” after the add to cart button is pressed. When I deactivate Woocommerce Currency Switcher the problem resolves.
https://codecanyon.net/item/woocommerce-currency-switcher/8085217
I have deactivated all caching and only 6 plugins are active. It is easy to reproduce the problem on the Mobile (Please use chrome inspector and switch to mobile view or check the website on your mobile)
Minicart after Add to Cart button is pressed –> https://i.imgur.com/PmxqJPk.jpg
Plugins Active –> https://i.imgur.com/EHWOBKh.jpgI have spent 20+ hours to troubleshoot this…Looking forward to hearing from you.
Mazhar
June 3, 2018 at 8:29 am #60904
Artem TemosKeymasterHello,
We just tested your website but didn’t notice the problem you are writing about https://gyazo.com/c413c95a0e814930ed08916cf9e29998
Regards
August 22, 2018 at 9:46 am #73783
addyParticipantHello mazs91,
I can understand the severity of the problem when you say 20+ hours. Did you then solve the issue with woodmart and currency switcher? We are exactly in same situation. Already spent lots of hours if not 20! It would be very helpful if you can tell us how you resolved the problem finally.
Have a great day!
Best Regards,
-
AuthorPosts
The topic ‘"NO PRODUCTS IN THE CART " after Add to Cart’ is closed to new replies.
- You must be logged in to create new topics. Login / Register