wilmthys Posted July 16, 2014 Share Posted July 16, 2014 Hello, Does anyone know how I can add the email address of a customer to the invoice (PDF)?I've found the invoice.tpl file under the PDF directory, but I don't know what code to use to add this. Cheers, Wilm Link to comment Share on other sites More sharing options...
Ittu Posted July 16, 2014 Share Posted July 16, 2014 Hi, Open your invoice.tpl file under ROOT_DIRECTORY_OF_PRESTASHOP > pdf find "{$invoice_address}" and put {$customer->email}<br/> just above on {$invoice_address}. You will be get customer email address in invoice. 1 Link to comment Share on other sites More sharing options...
Valerio M Posted October 8, 2014 Share Posted October 8, 2014 Hi, Open your invoice.tpl file under ROOT_DIRECTORY_OF_PRESTASHOP > pdf find "{$invoice_address}" and put {$customer->email}<br/> just above on {$invoice_address}. You will be get customer email address in invoice. Great ! This works ! Link to comment Share on other sites More sharing options...
Valerio M Posted October 14, 2015 Share Posted October 14, 2015 (edited) Hi, i updated ps theme and it doesn't works anymore In the invoice.tpl file there is not "{$invoice_address}" ! How can i do?? {$style_tab} <table width="100%" id="body" border="0" cellpadding="0" cellspacing="0" style="margin:0;"> <!-- Invoicing --> <tr> <td colspan="12"> {$addresses_tab} </td> </tr> <tr> <td colspan="12" height="30"> </td> </tr> <!-- TVA Info --> <tr> <td colspan="12"> {$summary_tab} </td> </tr> <tr> <td colspan="12" height="20"> </td> </tr> <!-- Product --> <tr> <td colspan="12"> {$product_tab} </td> </tr> <tr> <td colspan="12" height="10"> </td> </tr> <!-- TVA --> <tr> <!-- Code TVA --> <td colspan="6" class="left"> {$tax_tab} </td> <td colspan="1"> </td> <!-- Calcule TVA --> <td colspan="5" rowspan="5" class="right"> {$total_tab} </td> </tr> <tr> <td colspan="12" height="10"> </td> </tr> <tr> <td colspan="6" class="left"> {$payment_tab} </td> <td colspan="1"> </td> </tr> <tr> <td colspan="12" height="10"> </td> </tr> <tr> <td colspan="7" class="left small"> <table> <tr> <td> <p>{$legal_free_text|escape:'html':'UTF-8'|nl2br}</p> </td> </tr> </table> </td> </tr> <!-- Hook --> {if isset($HOOK_DISPLAY_PDF)} <tr> <td colspan="12" height="30"> </td> </tr> <tr> <td colspan="2"> </td> <td colspan="10"> {$HOOK_DISPLAY_PDF} </td> </tr> {/if} </table> Edited October 14, 2015 by Valerio M (see edit history) Link to comment Share on other sites More sharing options...
wilmthys Posted October 14, 2015 Author Share Posted October 14, 2015 You should make you changes in the PS_CONFIGURATION database table. Search the forums for more information Link to comment Share on other sites More sharing options...
eleazar Posted October 14, 2015 Share Posted October 14, 2015 (edited) Hi Valerio, Just add the above posted changes to /pdf/invoice.addresses-tab.tpl. The invoice.tpl is split into 8 files from 1.6.1.1 on. @wilmthys ??? Edited October 14, 2015 by eleazar (see edit history) Link to comment Share on other sites More sharing options...
Valerio M Posted October 14, 2015 Share Posted October 14, 2015 Yes! Great Eleazar! Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts