Duplicate orders
-
- Phoca Professional
- Posts: 189
- Joined: 12 Feb 2015, 13:30
Duplicate orders
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.
- Nidzo
- Phoca Professional
- Posts: 389
- Joined: 07 Nov 2018, 14:55
Re: Duplicate orders
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.
-
- Phoca Professional
- Posts: 189
- Joined: 12 Feb 2015, 13:30
Re: Duplicate orders
Yes, that is good idea...
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Duplicate orders
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
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
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 189
- Joined: 12 Feb 2015, 13:30
Re: Duplicate orders
1 second difference and between other duplicate pair is 2 seconds...
order tokens are different, IDs too. But the rest is same, even comment...
order tokens are different, IDs too. But the rest is same, even comment...
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Duplicate orders
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
When I try to somehow simulate it (on purpose technically made), then follwing will happen:
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 189
- Joined: 12 Feb 2015, 13:30
Re: Duplicate orders
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"...