Jump to content

Not receiving order confirmation emails when using *some* payment modules.


Recommended Posts

hi,

i'm desperately trying to get the order confirmation emails working for every payment module. apparently, only bankwire sends two emails (the 'waiting for bankwire' mail, and the order confirmation, which is fine).

when using cash-on-delivery or bill-me-later, nothing is sent at all.

in /classes/PaymentModule.php i found this code:

if ($orderStatus->send_email AND Validate::isEmail($customer->email))
{
   Mail::Send(
           intval($order->id_lang),
           'order_conf',
           'Order confirmation',
           $data,
           $customer->email,
           $customer->firstname . ' ' . $customer->lastname,
           NULL,
           NULL,
           $fileAttachment
      );
}



this is where i'm stuck. the condition $orderStatus->send_email makes no sense to me, since it relates to the payment emails (like the bankwire account info etc.). that has nothing to do with the order confirmation, which should be sent in any case, no matter which payment module was used.

i tried to create a new order state that uses order_conf as email template, but i can't find a way to have that state being used as standard state for new orders regardless of the payment module.

i'm using prestashop 1.2.4 on an apache live server.


thanks for any hints!


michael

Link to comment
Share on other sites

×
×
  • Create New...