Developer forum

Forum » Ecommerce - Standard features » Double order email sent to customer

Double order email sent to customer

Adnan Catovic
Reply

Hi 

We have an issue with order emails which are being sent to customer twice.
This happens on approximatelly 60% of all orders.
We have customizations in checkout observers which are (amongst other things) changing status of an order based on businnes logic.
For payment we are using DIBS FlexWin.

We doubt that the issue is related to two possible scenarios:
 - DIBS submitting a callback twice.
 - Customized order state update from observers written by us which may be triggering email notifications to be send multiple times.

We tried to work around the issue by using SendEmail and/or SendingEmail observer by checking if order state is set to SendToCustomer to true (see the attached image).

Checkout module setup also in attached second image.

Is there possibility (in an observer) to check if an email has already been sent and prevent the system from sending it again to a customer?


 

observers.PNG

Replies

 
Nicolai Pedersen
Reply

Hi Adnan

Never rule out anything... Could you provide a couple of order numbers that have sent emails twice? And can we see the code in your checkouthandler observers.

Thanks, Nicolai

 

You must be logged in to post in the forum