Jump to content

Order conf email is sent twice


Recommended Posts

Hello!

I have a problem, when I order, I get two order conf emails. One is filled out with real data and the other is filled with {variable} data..

The email is sent twice only when I select cash on delivery.

Can someone help me?

Sorry for my bad English, I come from Slovenia.


Regards, Mario

Link to comment
Share on other sites

  • 5 months later...

same case here.. I´d like to disable the e-mail which is sent with empty variables (I think it´s the one that´s set up in Orders > Order statuses) and only keep the other one. However, if I disable sending the email for Order confirmation, then nothing is sent at all, none of the two. I´m using OnePageCheckout module.

Any idea where I can edit the emails sent for each order status? Is there a file that can simply be modified (eg. add comment tags to the line which would send the one mail)?

Thanks!

Link to comment
Share on other sites

  • 2 years later...
  • 1 year later...
  • 7 months later...

PS 1.3.7:

1. deactivate email sending in the valid status (order_conf),
2. /classes/PaymentModule.php => ~ 400:

if ($orderStatus->send_email AND Validate::isEmail($customer->email))
    Mail::Send(intval($order->id_lang), 'order_conf', 'Order conf', $data, $customer->email, $customer->firstname.' '.$customer->lastname, NULL, NULL, $fileAttachment);
    $this->currentOrder = intval($order->id);
return true;

delete the "if" and "return" parts:

Mail::Send(intval($order->id_lang), 'order_conf', 'Order conf', $data, $customer->email, $customer->firstname.' '.$customer->lastname, NULL, NULL, $fileAttachment);
$this->currentOrder = intval($order->id);

this solution is works in 1.3.7.

Edited by pattila01 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...