Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Page cache changes the contents of the shopping cart
Tagged: shopping cart
- This topic has 7 replies, 3 voices, and was last updated 9 years, 11 months ago by innosolve.
-
AuthorPosts
-
November 27, 2014 at 3:40 pm #11839innosolveMember
I use W3 total chache (V.0.9.4) and WP eStore plugin (V7.1.4) as well. The shopping cart is enabled on three or more sites using Widget logic. If I disable w3 total cache everything works fine, but when it is enabled problem occurs when I change to another site. It means that if I put a product into the cart then switch to another site, an empty cart will be displayed because of the page cache. Then putting another product into the “empty” cart, two products will be displayed.
After a time it is very disturbing when I see the shopping cart with different products. It is occured that there was only one product displayed in the shopping cart, but after I cleared it, the same product was displayed again.
I would appreciate any advice, how to disable page caching when the cart is not empty. WordPress version V4.0.1. (website: innosolve.hu).
November 27, 2014 at 10:42 pm #67034adminKeymasterHave you done the following?
https://support.tipsandtricks-hq.com/forums/topic/using-the-plugins-with-w3-total-cache-plugin
November 28, 2014 at 9:03 am #67035innosolveMemberYes, I have done.
The “Rejected cookis” box contents now:
wptouch_switch_toggle
ap_id
cart_in_use
eMember_in_use
The first row (wptouch_switch_toggle) was put here during the installation, I let it here.
November 28, 2014 at 10:34 am #67036innosolveMemberAnd the contents of the “Never cache the following pages:”
wp-.*.php
index.php
November 30, 2014 at 5:18 am #67037wpCommerceModerator@innosolve, please do the following:
1) Install a fresh copy of eStore plugin.
2) Empty all the caches from the W3 Total Cache dashboard.
Let me know how it goes.
December 1, 2014 at 8:11 am #67038innosolveMemberThank you your help.
I have done both of your recommendations (Install and empty cashes).
For the sake of simplicity I enabled shopping cart on two pages only: Shop, Terms And Conditions. The phenomenon is the following:
1./ I put product_1 into the cart on the page Shop (Ok)
2./ Change page (Shopping Cart is disabled, Ok)
3./ Back to Shop (Cart is empty!)
4./ Put product_2 into the cart (product_1 and product_2 are in the basket!)
5./ Clearing shopping cart (Shopping cart is empty, Ok)
6./ Changing pages (Shopping cart is empty, Ok)
If I disable page cash in W3 Toatal cache the eStore works fine, there is no problem with the handling of the shopping cart. Its content is always correct.
December 1, 2014 at 10:29 pm #67039adminKeymasterPlease do a test for me. Turn of the ajax option from eStore Settings -> Advanced Settings -> Enable Ajax on Add to Cart Buttons
Do you see any difference after that?
December 2, 2014 at 7:47 am #67040innosolveMemberYes, I see. It works fine after switch off Enable Ajax on Add to Cart Buttons.
Thank you very much for your kind help.
-
AuthorPosts
- You must be logged in to reply to this topic.