Page 1 of 1
Duplicate orders
Posted: 18 Aug 2023, 10:14
by mino182
Hi, please, has anyone noticed, that sometimes received duplicate order? It looks like customer clicked on order button twice in a row. But I can't reproduce it... If yes, did you find the reason? Thanks.
Re: Duplicate orders
Posted: 18 Aug 2023, 11:47
by Nidzo
Noticed that too. It takes time when you click button to send order and display Info view. I presume that customer means that nothing happening and he tries to send it again. Maybe some Ajax preloader could notify customer that "work is in progress" and that it take some time.
Re: Duplicate orders
Posted: 18 Aug 2023, 15:11
by mino182
Yes, that is good idea...
Re: Duplicate orders
Posted: 21 Aug 2023, 16:33
by Jan
Hi, I don't think, it is technically possible for the browser to send some form twice - when you click on button to send the form data, the browser wait for the response and does not allow to send the form again.
Can you check the times when the order was made? See the column date for phocacart_orders table in database. Is the time the same or similar?
Jan
Re: Duplicate orders
Posted: 21 Aug 2023, 18:44
by mino182
1 second difference and between other duplicate pair is 2 seconds...
order tokens are different, IDs too. But the rest is same, even comment...
Re: Duplicate orders
Posted: 23 Aug 2023, 15:11
by Jan
Hi, are you sure the server is correctly set. I don't have any such experience that one form can be sent to server and managed twice
Even if one post is executed, the cart goes empty and the second post should in fact not happen because of the empty cart. I cannot imagine that some server will wait 1 or 2 seconds with managing post request and in this time it will manage the same request aqain
When I try to somehow simulate it (on purpose technically made), then follwing will happen:
Jan
Re: Duplicate orders
Posted: 23 Aug 2023, 15:50
by mino182
Yes, I get same result when I try to simulate it... That's why I ask if someone find reason, because it must be "something special"...