Jump to content

Email address in PDF invoice


Recommended Posts

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

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.

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

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

  • 1 year later...
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 by Valerio M (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...