Zen Cart Logo
Forums / Managing Customers and Orders / Duplicate Orders/Order Confirmation

Duplicate Orders/Order Confirmation

Views: 65,572

Results 81 to 100 of 131
25 Nov 2009, 11:58 AM
#81
stardotstar avatar

stardotstar

New Zenner

Join Date:
Jun 2009
Posts:
6
Plugin Contributions:
0

Duplicate Orders/Order Confirmation

Following this with interest. I have latest versions and getting intermittant duplicate orders following the common pattern:

web_submit and unique only difference being the order id #

I also note that turning off the PDT as recommended elsewhere removed the duplicate notice in the IPN listings in ZC but not the duplicate orders themselves - ie still coming through in email. Seems that only the second one actually "Takes" for me.

I have just made the changes suggested in page 3.

17 Dec 2009, 9:02 PM
#82
knownonesince avatar

knownonesince

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

I also have duplicate orders on my shop, happens randomly with either PayPal or iDeal (Dutch system).
I wonder if it has anything to do with the version of PHP on the hosting server. Mine has php 5.2 and maybe soon One.com will upgrade to PHP 5.3 will that be of any help?
If you also have these double orders, please let's find out if the version of PHP could be causing this issue. Since nobody has a really good working solution? Let's try to fix this one way or another. :lamo:
In Admin you can click on Version and on the left side it shows PHP 5.2 What's your version?

18 Dec 2009, 9:31 AM
#83
thysm00 avatar

thysm00

New Zenner

Join Date:
May 2009
Posts:
30
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

Mine shows :
PHP Version: 5.2.5
But i really don't think that's the problem...

24 Jan 2010, 10:12 PM
#84
knownonesince avatar

knownonesince

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

I'm still having the double orders once in a while. I did every suggestion from this forum, but still no solution. I really hope someone comes up with a fix as I think that this is one of the basic functions of a webshop. Is everyone having this issue? This issue has been on my mind and still is for the last 2 months. Each time I receive an order, I cross my fingers it's not doubled.

Please people, how can we fix this??

25 Jan 2010, 12:42 AM
#85
sykadelx avatar

sykadelx

New Zenner

Join Date:
Feb 2009
Posts:
19
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

Interesting. Today I got a duplicate order that was actually a FREE file. I run a digital download store and I have one product that is free. Someone "purchased" it and I got two order numbers for it, a few seconds apart. I think this might be a case of the user clicking more then once, but I'm not sure.

PHP Version: 5.2.8
Zen Cart 1.3.8a
Patch: 1::
Database Patch Level: 1.3.8

25 Jan 2010, 1:01 AM
#86
mr_pibb avatar

mr_pibb

New Zenner

Join Date:
Jul 2009
Posts:
20
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

Interesting, I saw this post and was getting ready to say that I haven't had a duplicate order in quite a while. Then I got a duplicate order a few minutes ago....sigh...

So if sykadelx had the duplicate order issue and the customer didn't check out through PayPal, then this is probably a Zen Cart issue?

25 Jan 2010, 11:13 AM
#87
knownonesince avatar

knownonesince

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

I am convinced that this is a Zen-Cart issue, not a Paypal issue as I've had this with both my paying methods.
How about we add a script to the order.php that will check if there has already been an order for this customer in the last minute? How hard would it be to add this?

29 Jan 2010, 8:32 PM
#88
knownonesince avatar

knownonesince

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

So if it's not the php version, maybe we can compare the session settings we're using. In Configuration - Sessions, these are my settings:

Session Directory /<customerfolder>/httpd.www/cache
Cookie Domain True
Force Cookie Use False
Check SSL Session ID False
Check User Agent False
Check IP Address False
Prevent Spider Sessions True
Recreate Session True
IP to Host Conversion Status true

If you have the same issues as I do, please let me know if you're using the same settings?

30 Jan 2010, 11:14 PM
#89
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

KnowNoneSince:

I am convinced that this is a Zen-Cart issue, not a Paypal issue as I've had this with both my paying methods.
How about we add a script to the order.php that will check if there has already been an order for this customer in the last minute? How hard would it be to add this?Did you follow the fix over in http://www.zen-cart.com/forum/showthread.php?p=544255 ?

23 Feb 2011, 10:43 PM
#90
pcc2009 avatar

pcc2009

New Zenner

Join Date:
Nov 2010
Posts:
13
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

I am using an upgraded 1.3.9h from 1.3.8.
I have installed the Ultimate SEO URLS plugin and a facebook "like" button.
HTTP Server: Apache/2.0.54
PHP Version: 5.2.14

I am also getting occasional double orders, where both myself and the customer recieve double order confirmations with different confimation #s however the customer will only be charged once. Customers email with concern that they may have been doubly charged. This happened occasionally prior to upgrading, and I thought it was fixed in the new version (I've seen the code change in jscript_main.php, but it didn't fix the problem). I have gone through this entire post for fixes, and have found no working answers.

I appreciate any help, Thanks!

15 Jun 2011, 4:01 PM
#91
rabble avatar

rabble

New Zenner

Join Date:
May 2011
Posts:
7
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

I was having very similar issues and I was able to fix it. See this and this for my OG post.

I had changed from the PHP email method to SMTP/SMTPAUTH and duplicate orders started. Changed it back and not a single duplicate order.

Despite not being as secure and spam friendly as SMTP/SMTPAUTH, it works as it has for three years.

27 Sep 2011, 12:53 PM
#92
dlcohenzc avatar

dlcohenzc

New Zenner

Join Date:
Sep 2011
Posts:
19
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

Anyone get definitive answer to this yet? I have 1.3.9g, and am also getting occasional duplicate orders with web paypal pro. I am looking at going to 1.3.9h, but don't see that this will have any affect in the area.

Looking at logs for recent triplicate: there are different transaction ids, and timestamp is 14 secs apart for each of the 3.

I'm guessing from reading posts that this is multiple clicks. In pages/checkout_confirmation/jscript_main.php, I have the submitonce stuff in. Just wondering, why have 4 sec timeout on disable? Can this just never reenable the submit button? Presumably, on error they'd have to do something else anyway.

28 Sep 2011, 3:34 AM
#93
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Duplicate Orders/Order Confirmation

dlcohenzc:

Anyone get definitive answer to this yet? I have 1.3.9g, and am also getting occasional duplicate orders with web paypal pro. I am looking at going to 1.3.9h, but don't see that this will have any affect in the area.

Looking at logs for recent triplicate: there are different transaction ids, and timestamp is 14 secs apart for each of the 3.

I'm guessing from reading posts that this is multiple clicks. In pages/checkout_confirmation/jscript_main.php, I have the submitonce stuff in. Just wondering, why have 4 sec timeout on disable? Can this just never reenable the submit button? Presumably, on error they'd have to do something else anyway.
According to the logs you shared, yours looks very much like the button was pressed repeatedly, or the customer thought it was taking too long to respond and they refreshed the page in their browser and clicked submit again.
Zen Cart isn't going to submit the transactions multiple times on its own. That has to be initiated by the customer.

Others in this discussion are typically reporting the duplicates which are occurring from a different cause. Your logs show that yours are pretty clearly a result of the customer submitting multiple times.

I still recommend doing the simple upgrade from 1.3.9g to 1.3.9h.

30 Sep 2011, 10:23 AM
#94
dlcohenzc avatar

dlcohenzc

New Zenner

Join Date:
Sep 2011
Posts:
19
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

Thanks much for the reply. Duplicate clicking was my guess as well. I am going to add a message to only click once, and also in submitonce function not reenable the button after 4 second timeout, just leave it disabled. (Sound reasonable?)

I just upgraded to 1.3.9h

BTW, after working with new customer on their 2 ZC stores, I think I am an old-time osCommerce convert (I did massive osc customizations that ZC gives me for free now...)

  • Dave
12 Nov 2011, 7:18 AM
#95
todoonada avatar

todoonada

Zen Follower

Join Date:
Nov 2006
Posts:
127
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

DrByte:

According to the logs you shared, yours looks very much like the button was pressed repeatedly,

In which log-file and how can it be seen?

I am asking because I experience the same problem sometimes since around 10 days. I am using version 1.3.9h and nothing has been changed from my side. Just suddenly this problem occured.
The point which is really annoying is that I can not simply delete the order and do an auto-restock. Some items are deducted, others are not. So every item of the deleted double order has to be checked manually.

26 Nov 2011, 11:16 PM
#96
klevans avatar

klevans

New Zenner

Join Date:
Jul 2011
Posts:
27
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

Just had 6 duplicate orders in a row but 4 were PayPal the other was Google checkout so this looks like a zen issue not a paypal issue dose anyone have a fix on this yet ?

I have lost a bit of money for this happening as I missed some of them to start with.

27 Nov 2011, 5:20 AM
#97
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Duplicate Orders/Order Confirmation

Sounds more like a template issue. The default template automatically disables the Submit button once it's clicked the first time. If you've changed things in a way that breaks that normal functionality then it's possible that your customers are clicking multiple times, resulting in multiple charges.

27 Nov 2011, 7:54 AM
#98
klevans avatar

klevans

New Zenner

Join Date:
Jul 2011
Posts:
27
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

I looked at info regarding the submit button and it is in the template to stop multi clicks emailed one of the customers and he said he hit the back button on his mouse by accident after he clicked submit.

Google order is showing first order as Google processing the second is showing as Google new with no data.

27 Nov 2011, 2:52 PM
#99
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Duplicate Orders/Order Confirmation

klevans:

I looked at info regarding the submit button and it is in the template to stop multi clicks emailed one of the customers and he said he hit the back button on his mouse by accident after he clicked submit.So, user error.
klevans:

Google order is showing first order as Google processing the second is showing as Google new with no data.Those are normal symptoms.

24 Sep 2012, 10:07 PM
#100
gelgel avatar

gelgel

New Zenner

Join Date:
Sep 2012
Posts:
2
Plugin Contributions:
0

Re: Duplicate Orders/Order Confirmation

I belie the reason is too many REQUEST coming to ipn_main_handler.php for same Checkout. so it start to process all POST request parallel and this causes duplicate order.

because the code ipn_main_handler.php already have duplicate request check control. so why this control not works lets see step by step

$lookupData  = ipn_lookup_transaction($_POST);
.....
  $new_record_needed = ($txn_type == 'unique' ? true : false);

1.POST1 comes to ipn_main_handler.php
2.POST1 start processing check is there same PayPal request processed NO (check **paypal **table)
3.POST1 INSERT New Order to **orders **table
4.POST2 comes to ipn_main_handler.php
5.POST2 start processing check is there same PayPal request processed NO (check **paypal **table) (NO Because We haven't Insert POST1 row to **paypal **table
6.POST1 INSERT New Order to **orders **table
7.POST1 insert row to **paypal **table
8.POST2 insert row to **paypal **table

as you can see there is time lag between 7. step and 5. step. because of this parallel processing, is unique papal order checking fails and system process both post data as a new order.

i checked the Apache behavior with following code. when i send a two request from different browsers it procesed same page at same time(paralley).

for($i=0;$i<8;$i++)
{
echo "$i. ".date("H:i:s", time())." <br>";
sleep(1);
}

and solution for this problem is using a table which keeps txn_id | (and process status)
and before start to process
1.update table txn_id|inprogress
2.second Post data checks if its in in progress then wait 5 seconds and check again until first process changed to txn_id|done

it have same weakness but if you don't use auto increment key. sytem have to wait for eacother because of SQL insert integrity or it gives duplicate key error.

This is my Theory of Duplicate orders. if you have any comments or different views on this analyze i love to hear. i have to solve duplicate problem.
anyone solved the problem ?? please share your solution...
thanks