You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
All of a sudden my installation of CCP is generating duplicate order confirmation emails when an order is paid by Paypal. I receive two emails from CCP, but I don't know if the customer is as well (or if they are not receiving any). They are both to the same email address (orders@canineconcepts.co.uk).
Before you ask, the 'send to secondary email address' setting is sent to NO. Anyway, this problem does not occur when customers pay by Worlpay.
Has anyone seen this before, any ideas would be gratefully received ?
Offline
... Let me correct that, as of today it is now producing THREE duplicates.
There most be someone out there who has seen this before - don't make me plead !
Offline
I'm seeing the same thing: sometime two sets, usually three sets of customer/internal/shipper emails for paypal payments - all with the same timestamp.
My shipper would love it if I could eliminate the duplicates, any ideas?
Offline
webmaster,03/23/2005 07:13:48 AM wrote:
Are the customers entering their email addresses correctly?
Yes, they are entering the email addresses correctly. Over 95% of my paypal payments generate 3 sets of the 3 emails, once in a while only one set is generated.
Offline
Bump.
Still hoping for a resolution to this...
Offline
No, this is not due to poorly formatted email addresses.
I get several of these every day.
Offline
bump
this is a big problem, happens on every paypal order and is annoying my supplier several times a day as i have to cancel the two extra duplicate orders
is anyone willing to figure this out?
my offer starts at $100 and will go up every week...
Offline
... $150 (still happening on more than 95% of my paypal orders)
Offline
I'm having a similar problem when sending out to mail list. It sends 3-4 copies of the email to each recipient.
I have 1600+ people on my list
Offline
This only happens for Paypal orders, happens on nearly all paypal orders and never happens on non-paypal orders.
The three emails are generated 10-20 seconds apart.
We're talking about 1200 total orders and around 50 of them Paypal, this is clearly not a mailserver issue.
The mailserver has no awareness of what payment processor was used and cannot be acting differently based on the payment processor.
If it was the mailserver, wouldn't they have the same datestamp for creation?
Can you at least point me to the place where these are being generated so I can try to find out why this is happening?
Offline
All order emails are generated through a unified routine 'ste_order_conf_sendemail_proc' in the file ./cgi-bin/library/modules/ste_order.pl.
This routine is called up from two places:
(1) When processing order confirmations for the front-end.
(2) When re-generating emails for the back-end.
Are these all Internal order emails? Or are there some based on the customer template and/or the shipper template?
Offline
It's happening for all three - the customer gets three copies, internal gets three copies and shipper gets three copies ...
Note, they all have slightly different timestamps (10-20 seconds apart).
Offline
CCP will only process the order once - sending emails out only once during the order confirm routine. If the processing is attempted more than once the program displays only the order confirm page (without all the extra processing).
Have you made any coding changes to the order confirmation logic in the program?
Are you absolutely sure this doesn't happen with other processing methods - or the contact form?
Offline
I have not made any changes to the order confirmation logic.
It has never happened with other processing methods or the contact form.
I guess I'll add some debug code to first see if ste_order_conf_sendemail_proc is being called three times for these orders, then go from there...
Offline
Nick, based on inserting debug code, ste_order_conf_sendemail_proc was called THREE times from ste_order.pl, line 2469 for order CG200504282 (a paypal payment)....
2005-04-27 22:43:08 - calling &ste_order_conf_sendemail_proc('Y','Y','Y') from ste_order.pl, line 2469
2005-04-27 22:43:08 - ste_order_conf_sendemail_proc called: 04/27/2005 22:43:08
2005-04-27 22:43:08 - sending shipper email - Classy Groundcovers - Order - CG2005042734
2005-04-27 22:43:08 - sending primary order email - Classy Groundcovers - Order Confirmation - CG2005042734
2005-04-27 22:43:09 - ste_order_conf_sendemail_proc - Done sending out emails
2005-04-28 04:21:33 - calling &ste_order_conf_sendemail_proc('Y','Y','Y') from ste_order.pl, line 2469
2005-04-28 04:21:33 - ste_order_conf_sendemail_proc called: 04/28/2005 04:21:33
2005-04-28 04:21:33 - sending shipper email - Classy Groundcovers - Order - CG200504281
2005-04-28 04:21:33 - sending primary order email - Classy Groundcovers - Order Confirmation - CG200504281
2005-04-28 04:21:34 - ste_order_conf_sendemail_proc - Done sending out emails
2005-04-28 08:52:14 - calling &ste_order_conf_sendemail_proc('Y','Y','Y') from ste_order.pl, line 2469
2005-04-28 08:52:14 - ste_order_conf_sendemail_proc called: 04/28/2005 08:52:13
2005-04-28 08:52:14 - sending primary order email - Classy Groundcovers - Order Confirmation - CG200504283
2005-04-28 08:52:14 - ste_order_conf_sendemail_proc - Done sending out emails
I added this in front of line 132 of adm_track.pl...
### KAZ ### as per http://forum.kryptronic.com/viewtopic.php?id=9305&st=0&#entry48621 open (FILE, ">>$server_data_path/paypal_debug.txt"); flock (FILE, 2); ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time); printf FILE "%4d-%02d-%02d %02d:%02d:%02d - ",$year+1900,$mon+1,$mday,$hour,$min,$sec; print (FILE "calling &ste_order_conf_sendemail_proc($sendint,$sendcust,$sendship) from adm_track.pl, line 132\n"); close(FILE); ### KAZ ###
... to insure that they are not coming from there, so I'm at a complete stop in terms of how to diagnose this further.
Please advise how to debug further....
Offline
Did you delete the line:
unlink "$data_temp_path/$fd_usr.$data_table_ext";
In the routine 'ste_order_conf_proc' in ste_order.pl? After the first time that routine is called, the cart is deleted and it won't run again. I think that line is missing. Possibly as a way to not delete the cart once an order is processed.
Offline
No, it's there on line 2479, just before:
&initialize_sub_remove('ste_order_conf_proc');
and just after
open (FILE, ">>$server_data_path/paypal_debug.txt"); flock (FILE, 2); ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time); printf FILE "%4d-%02d-%02d %02d:%02d:%02d - ",$year+1900,$mon+1,$mday,$hour,$min,$sec; print (FILE "calling &ste_order_conf_sendemail_proc('Y','Y','Y') from ste_order.pl, line 2469\n"); close(FILE); &ste_order_conf_sendemail_proc('Y','Y','Y');
Offline
You might want to give this a try:
Log into Paypal and go to your account and click on Merchant Tools. At the bottom
of the page under Integrating with Backend Applications you will see Instant Payment Notification. Click on that, you will then see a menu on the right. Click on Technical Overview. This should show you your IPN settings. I accept Paypal
and my IPN was set to off and I did not get duplicate e-mails. Is it possible your IPN is on? Might be worth a try. Shawn
Offline
No, my IPN is Off - but THANKS for suggesting!
Offline