Duplicate orders

Phoca Cart - complex e-commerce extension
mino182
Phoca Professional
Phoca Professional
Posts: 189
Joined: 12 Feb 2015, 13:30

Duplicate orders

Post 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.
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 389
Joined: 07 Nov 2018, 14:55

Re: Duplicate orders

Post 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.
mino182
Phoca Professional
Phoca Professional
Posts: 189
Joined: 12 Feb 2015, 13:30

Re: Duplicate orders

Post by mino182 »

Yes, that is good idea...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Duplicate orders

Post 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. :idea:

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
mino182
Phoca Professional
Phoca Professional
Posts: 189
Joined: 12 Feb 2015, 13:30

Re: Duplicate orders

Post 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...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Duplicate orders

Post 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 :idea: 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 :idea:

When I try to somehow simulate it (on purpose technically made), then follwing will happen:

Image

Jan
If you find Phoca extensions useful, please support the project
mino182
Phoca Professional
Phoca Professional
Posts: 189
Joined: 12 Feb 2015, 13:30

Re: Duplicate orders

Post 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"...
Post Reply