In-Portal Issue Tracker - In-Commerce
Viewing Issue Advanced Details
1398 [In-Portal CMS] Email Templates bug report always 2012-09-16 06:38 2012-10-19 07:28
alex  
alex  
normal  
resolved 5.2.0  
fixed  
 
none 5.2.1-B1  
https://groups.google.com/d/topic/in-portal-dev/eFiueLftlTQ/discussion
Fixes duplicate e-mail sent during checkout
1
0001398: Email Sent Twice When Ordering
Hi guys,

I've just discovered that, beginning with 5.2.x, when you place an order, email confirmation is sent twice: once to account email, once to billing email.
It doesn't seems to be a bug, because these 2 address could be different, and I suggest that billing email (and all other billing fields) could be pre-populated with user account details, by default.
It can happen, because in code we seem to specify both User ID who did a checkout and billing e-mail from order.

However in versions before 5.2.x only 1 e-mail to billing e-mail was sent.
In 5.2.x we improved mailing system, but haven't changed the code, that uses it. This way 2 e-mail are sent out instead of 1.

Since billing e-mail is required field (not sure, but could be so), then I propose to:
populate it with user's e-mail used during registration
send e-mail only to billing address
patch duplicate_order_email_modules_fix.patch (7,166) 2012-10-19 07:26
http://tracker.in-portal.org/file_download.php?file_id=1836&type=bug
Issue History
2012-10-19 07:28 alex Changeset attached 5.2.x r15591
2012-10-19 07:28 alex Note Added: 0005237
2012-10-19 07:28 alex Status reviewed and tested => resolved
2012-10-19 07:28 alex Fixed in Version => 5.2.1-B1
2012-10-19 07:28 alex Resolution open => fixed
2012-10-19 07:27 alex Note Added: 0005236
2012-10-19 07:27 alex Assigned To Dmitry => alex
2012-10-19 07:27 alex Status needs testing => reviewed and tested
2012-10-19 07:27 alex Assigned To => Dmitry
2012-10-19 07:27 alex Developer => alex
2012-10-19 07:27 alex Status active => needs testing
2012-10-19 07:26 alex File Added: duplicate_order_email_modules_fix.patch
2012-09-16 06:38 alex New Issue
2012-09-16 06:38 alex Reference => https://groups.google.com/d/topic/in-portal-dev/eFiueLftlTQ/discussion
2012-09-16 06:38 alex Change Log Message => Fixes duplicate e-mail sent during checkout
2012-09-16 06:38 alex Estimate Points => 1

Notes
(0005236)
alex   
2012-10-19 07:27   
Will test all together later.
(0005237)
alex   
2012-10-19 07:28   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001398: Email Sent Twice When Ordering