Jump to content

Add customer email in delivery slip


Recommended Posts

I think you have to modify ./classes/PDF.php as following

right after following code

if (!empty($delivery_address->phone_mobile))
{
   $pdf->Ln(5);
   $pdf->Cell($width, 10, $delivery_address->phone_mobile, 0, 'L');
}



Add following code

$pdf->Ln(5);
$pdf->Cell($width, 10, $invoice_customer->email, 0, 'L');
$pdf->Ln(5);
$pdf->Cell($width, 10, self::l('ORDER #:') .sprintf('d', $order->id), 0, 'L');



Please note:
1. I have tested this on ver 1.3.1 (not sure for other versions)
2. This change will also affect invoice

Hope this help

Link to comment
Share on other sites

  • 1 year later...

Howdy,

Could anyone pls help me to make an update to this post? I can not find the below code in my PDF.php, to add the new lines of code. I'm using 1.4.4.0.

I would like to add the customers e-mail and potentially their mobile phone number below the delivery and/or invoice address "boxes".

Thanks

Link to comment
Share on other sites

×
×
  • Create New...