Jump to content

Disable order emails


Recommended Posts

  • 4 months later...
  • 10 months later...
  • 1 year later...
Line 773 to line 785 in my PaymentModule.php

 

I commented it like this:

 

// if (Validate::isEmail($this->context->customer->email))

// Mail::Send(

// (int)$order->id_lang,

// 'order_conf',

// Mail::l('Order confirmation', (int)$order->id_lang),

// $data,

// $this->context->customer->email,

// $this->context->customer->firstname.' '.$this->context->customer->lastname,

// null,

// null,

// $file_attachement,

// null, _PS_MAIL_DIR_, false, (int)$order->id_shop

// );

 

Hope this helps, it worked for me.

 

  • Thanks 1
Link to comment
Share on other sites

  • 4 weeks later...

Hello,

 

My requirement is to skip the "Payment Accepted" email sent to customer if the order amount is 0.

I am new to Prestashop, and not able to understand in which class or controller I have to put this condition.

 

Any help will be appriciated. Thanks in advance.

Link to comment
Share on other sites

×
×
  • Create New...