Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Refresh Web Page Increases Shopping Cart Item Quantity?
- This topic has 4 replies, 4 voices, and was last updated 14 years, 11 months ago by
wzp.
-
AuthorPosts
-
February 2, 2010 at 5:19 am #732
joshuagsmith
MemberExample: 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
February 2, 2010 at 5:20 am #17676joshuagsmith
MemberDoes it in latest Firefox also.
February 2, 2010 at 7:32 am #17677amin007
ParticipantThis 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.
December 8, 2010 at 8:29 am #17678twoonbay
MemberI 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.
December 8, 2010 at 2:42 pm #17679wzp
ModeratorWhat 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.
-
AuthorPosts
- You must be logged in to reply to this topic.