- This topic has 3 replies, 3 voices, and was last updated 2 years, 11 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Shopping cart shoes a different quantity if visit one post and then go back
Tagged: cache, empty cart, PHP error
When I add to the shopping cart one product, navigate to other page in my site and press the button to go back in my browser, the shopping cart increases one more product in the quantity.
Please check this video to see the problem in detail:
…and press the button to go back in my browser…
THAT is a “no-no.” You should never just “push the back button” and expect nothing bad to happen. The reasons are myriad, and mostly technical.
In the case of eStore, using the back button at an inopportune time, such as what you described; can cause a duplicate “add to cart” to occur. This situation is not just limited to eStore; banking & credit card websites, specifically warn you not to use your browser’s back button; or duplicate payments or withdrawals will occur. And if you try using the back button, during the checkout process on Amazon; you get a redirection popup (they thought of this, LOL).
P.S. I noticed you have been using eStore for a long time; please ensure you are using the latest version of WordPress and our plugins.
Setup a specific cart page where the user will be redirected to after the “add to cart” action. That will address this:
@wzp I did that (press the back button), because it was what I undesrstood from https://support.tipsandtricks-hq.com/forums/topic/php-session-not-working-correctly step 3. Either way, everything is working good now (so far). What I did was:
1. For the issue explained in my video I checked the box “Enable Ajax on Add to Cart Buttons” in the advanced settings.
2. When the items in the shopping cart started to disappear, I updated the php in my cpanel, and disabled a cache plugin.
Regards,