Checkout confirmation emails are sent twice.

Posts: 18
Joined: 08/05/2008

Not sure whether this is a bug or misconfiguration.

The Email sent to a customer on checkout completion is being sent twice.

It is enabled at
admin/store/settings/notify/edit/checkout

I won't see any workflowNG operations that might cause it to get triggered twice?

Any ideas?
I don't see any mention of it in the forums...

Alan

Posts: 974
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

If you're testing as the admin user, and you have admin e-mail notifications turned on, you may be receiving 1 admin notification and 1 customer notification ?

--

<tr>.

Posts: 18
Joined: 08/05/2008

With my own module I reckon.

I modified the 2checoutmodule to build the Realex module
http://www.ubercart.org/contrib/6147
as they work on the same principle.

I suspect that the issue is caused by the final 'finalize' function at line 297.
The function 'uc_cart_complete_sale' is called,
which I suspect causes the 2nd email to get sent.

Hmm... the investigation continues.
Alan

Posts: 18
Joined: 08/05/2008

The function 'uc_cart_checkout_complete' seems more appropriate, and seems to do the trick.
Only one Email generated now.

Would be interested to get feedback on this approach.

Alan

Posts: 18
Joined: 08/05/2008

reply to TR above...

Opps, Missed this in my own replies.

Nope, I'm using a different email addresses for better testing.
The Email sent out is exactly the same.

Thanks!

Alan