Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author bluey80

    (@bluey80)

    This is a known issue as when you hit reload, your browser resends the code that says “I want to buy one more of X”. When you hit reload, your browser probably displays something like

    The page that you’re looking for used information that you entered. Returning to that page might cause any action you took to be repeated. Do you want to continue?

    Solution is not to hit reload after adding items to your cart.

    Thread Starter bonz

    (@bonz)

    thanx for the quick answer.
    yes i know if i reload i have this issue, but not the buyers.
    you think in future that is possible to solve this problem?
    i like very, very much this plugin, the maximum would be if you added the possibility to download digital items.
    thanx again
    bonz

    Plugin Author bluey80

    (@bluey80)

    I can’t think of a simple solution — the problem is that when you click reload, you are reposting the data saying “add this item to the cart” the only solution I can think of is a complicated system for hashing the post variables with a token that can only be used once. Alternatively maybe some AJAX javascript to reload doesn’t actually trigger the browser to send the data again, but that’s a major rewrite of the how data is passed to SCABN.

    Maybe I’m missing something, but when would a customer reload the page? Seems not very common, and when they do the browser posts a warning about it affecting data (and an option to cancel) and then we can see that the quantity changed in their shopping cart.

    Plugin Author bluey80

    (@bluey80)

    Ok, my bad. It is easy to do this check because the cart session stores the relevant data. Please try SCABN 2.1.1 as I put in a hook to check that the cart id matches and cart id changes on every change to cart — should prevent any change getting processed more than once.

    Plugin Author bluey80

    (@bluey80)

    Also, this may cause add/edits to the cart to not work if a user goes to one pages, makes a change and then hits the back button to go a previous page. User will need to reload the pages since the add to carts links will be stale from going to other page and then hitting back button. Anyway, needs some testing.

    Thread Starter bonz

    (@bonz)

    great, wonderful, fantastic.
    i’m very happy that you solved so quickly this big problem
    a great thanks to you for your job
    bonz

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘When i reload the page the quantity item add one more item’ is closed to new replies.