Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › eStore – Shopping cart not showing any items
- This topic has 14 replies, 4 voices, and was last updated 10 years ago by mrcordi.
-
AuthorPosts
-
November 13, 2014 at 9:01 am #11776mrcordiSpectator
Hi,
When I add items to the shopping cart at the bottom of the page [http://mynewcareercoach.com/rates-bookings/], they do not always appear on the shopping cart displayed at [http://mynewcareercoach.com/coaching-services-checkout]. I say ‘do not always’ because occasionally they do. In fact, the shopping cart was working properly about 1 week ago.
I can’t think of any changes I’ve made to the site in the last week.
I’m running WP 4.0 and v 7.1.6 of e-Store.
November 13, 2014 at 10:26 pm #66768wpCommerceModeratorHi, which shopping cart shortcode are you using? Does it work if you insert the shopping cart shortcode on the same page? [http://mynewcareercoach.com/rates-bookings/]
November 14, 2014 at 12:57 am #66769mrcordiSpectatorI’m using the shortcode [wp_eStore_cart].
I just tested the shopping cart on [http://mynewcareercoach.com/rates-bookings/] and it works. However, today it’s also working on [http://mynewcareercoach.com/coaching-services-checkout], the same page where I was encountering problems yesterday. What could result in the shopping cart working sometimes and not others? I suspect it’s not really a problem with e-Store, but rather something to do with my website setup. Maybe an incompatible plugin.
Btw, is the shopping cart likely to have fewer problems if it’s on the [http://mynewcareercoach.com/rates-bookings/] page instead of a separate checkout page? If so, I might consider putting it there.
November 14, 2014 at 4:36 am #66770mrcordiSpectatorI decided to put the shopping cart on the [http://mynewcareercoach.com/rates-bookings/] page regardless. I’d still be interested to know if I’m likely to encounter fewer problems with it there instead of having it on a separate page.
November 14, 2014 at 5:06 am #66771wpCommerceModeratorThat shouldn’t make any difference. I just wanted to check since you are using the “Ajax option” (where an item is added to the shopping cart dynamically).
Usually this type of issue is related to PHP session:
https://support.tipsandtricks-hq.com/forums/topic/php-session-not-working-correctly
November 14, 2014 at 1:53 pm #66772mrcordiSpectatorOk, thanks. I will go through the steps to check the PHP session.
November 15, 2014 at 12:57 am #66773mrcordiSpectatorI followed the instructions in https://support.tipsandtricks-hq.com/forums/topic/php-session-not-working-correctly and it doesn’t look like I’m having a PHP-related issue. In fact, the shopping cart is mysteriously working again.
November 15, 2014 at 1:14 am #66774adminKeymasterIt looks good to me. Are you using a caching plugin by any chance?
November 15, 2014 at 5:10 am #66775mrcordiSpectatorI had been using W3 Total Cache, but I have it deactivated at the moment because it was causing me other problems with my theme. I may turn it back on later if I can because it does speed up my site.
e-Store has both worked and not worked with W3 Total Cache activated.
Is there anything I should be mindful of to avoid problems with eStore when using a caching plugin. For example, should I disable certain features?
November 15, 2014 at 2:25 pm #66776wzpModeratorIs there anything I should be mindful of to avoid problems with eStore when using a caching plugin. For example, should I disable certain features?
Yes:
https://support.tipsandtricks-hq.com/forums/topic/using-the-plugins-with-w3-total-cache-plugin
November 16, 2014 at 1:55 am #66777mrcordiSpectatorThank you!
November 16, 2014 at 5:09 am #66778mrcordiSpectatorAs mentioned in my earlier post, I followed the instructions at https://support.tipsandtricks-hq.com/forums/topic/php-session-not-working-correctly to determine that I don’t likely have any problems with the PHP session on my site.
However, after my testing I reactivated the W3 Total Cache plugin and added the 3 lines mentioned at https://support.tipsandtricks-hq.com/forums/topic/using-the-plugins-with-w3-total-cache-plugin to “Rejected Cookies” under Page Cache. Since your premium plugins (e-Store included) are designed to work with W3 Total Cache, I assumed that if I reran the PHP session test (but this time with W3 Total Cache activated) that my results would be the same as before.
Instead I found that my shopping cart was emptied whenever I navigated to another page. I’ve since deactivated the caching plugin again and the shopping cart remains intact.
Am I missing something? If e-Store is designed to work with W3 Total Cache, shouldn’t the shopping cart work the same regardless of whether the plugin is activated or not?
November 16, 2014 at 11:11 pm #66779adminKeymasterYes, it should just work. On this site it is conflicting with something… just have to figure out what it is.
Please do one test for me. Go to the advanced settings tab of eStore plugin. Then turn off the ajax option. How does it work with the cache plugin after that?
November 16, 2014 at 11:43 pm #66780wpCommerceModerator@mrcordi, we have added some tweaks to the Ajax add to cart option. I have sent you the updated copy of eStore to your registered email address. Let me know how it goes.
November 17, 2014 at 12:49 am #66781mrcordiSpectatorThe updated version of the Ajax add to cart option works perfectly. Thank you.
I performed the test requested by Key Master and can confirm that e-Store works fine with the caching plugin with ajax turned off.
-
AuthorPosts
- You must be logged in to reply to this topic.