Jump to content

COD Modul without sending an invoice directly


Recommended Posts

Hi,

 

is there any way to prevent prestashop 1.5.6.1 from attaching the invoice to the order confirmation email which is automatically sent after any order by using the standard COD 0.4 Modul?

 

It would be great if there is a way.

 

Thank you in advance!

Looking forward to receiving your ideas,

bjappler

Link to comment
Share on other sites

This topic can be closed.

The solution is to exclude the following part of the paymentModule.php, which is located in classes.

Many thanks to Trytwo.

// Join PDF invoice
	 if ((int)(Configuration::get('PS_INVOICE')) AND Validate::isLoadedObject($orderStatus) AND $orderStatus->invoice AND $order->invoice_number)
	 {
	  $fileAttachment['content'] = PDF::invoice($order, 'S');
	  $fileAttachment['name'] = Configuration::get('PS_INVOICE_PREFIX', (int)($order->id_lang)).sprintf('%06d', $order->invoice_number).'.pdf';
	  $fileAttachment['mime'] = 'application/pdf';
	 }
	 else
	  $fileAttachment = NULL;

The solution can be found here:

http://www.prestashop.com/forums/topic/130021-delete-remove-pdf-invoice-from-order-confirmation-email/?p=632106

 

Best regards,

bjappler

Link to comment
Share on other sites

×
×
  • Create New...