- This topic has 4 replies, 4 voices, and was last updated 13 years, 11 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 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 › Refresh Web Page Increases Shopping Cart Item Quantity?
Example: if I have one item in the cart and I refresh the page I then have two items.
(Browser: latest version of Safari running on latest version of Mac OS.)
-Josh
Does it in latest Firefox also.
This is how the browser works. If you have performed a HTTP POST operation (e.g just added a product to the cart) then if you refresh the page, the POST operation will get executed again and thus adding the product again to the cart.
I posted this elsewhere:
The only way I found to prevent this, or at least try to, is to place WP-eStore in a text widget and display a text block
“PLEASE NOTE: Reloading or refreshing a page will result in the same item being added to the cart twice. We recommend you use the website navigation menu ONLY.”
Not the perfect solution by any means but refunds are a pain in the butt.
If anybody finds another solution please post it.
What you have done is considered a “standard practice” by many websites, especially banks. Some sites go so far as to disable the browser back button; but this is considered intrusive, because it makes the user think you are “doing something” to their computer.
If you are interested in learning more about usability standards and practices, the following is suggested:
W3C Web Content Accessibility Guidelines 1.0
Possible Workaround
Use the following option of eStore as an workaround if you think this will be an issue for you:
1) Create a “Checkout” page and place the shopping cart shortcode in this page.
2) Go to eStore settings and specify the URL of the page created in step 1 in the “Checkout Page” field.
3) Then tick the “Automatic redirection to checkout page” checkbox and save the settings.
Now after someone adds an item to the cart they will get redirected to the checkout page automatically and if they hit the “browser refresh” button it won’t add the item again.