Jump to content

Delivery Method In Customer Invoices


chewygmb

Recommended Posts

Hi all,

 

I'm trying to add some vital information to customer invoices.

 

I've succeeded in adding customers phone number to the delivery address but now I would like to get the delivery method to appear in the summary section at the top of the invoice.

 

Does anyone have the code that (I assume) I will add to /pdf/invoice.summary-tab.tpl ?

 

 

Many Thanks

 

Grant

 

www.the-rashop.org

Link to comment
Share on other sites

Thank you very much. Got it working.

 

In case anyone else is looking for the solution, do the following:

 

Find pdf>invoice.summary-tab.tpl

 

Insert the bold code highlighted below

 

<table id="summary-tab" width="100%">
<tr>
<th class="header small" valign="middle">{l s='Invoice Number' pdf='true'}</th>
<th class="header small" valign="middle">{l s='Invoice Date' pdf='true'}</th>
<th class="header small" valign="middle">{l s='Order Reference' pdf='true'}</th>
<th class="header small" valign="middle">{l s='Order date' pdf='true'}</th>
{if $addresses.invoice->vat_number}
<th class="header small" valign="middle">{l s='VAT Number' pdf='true'}</th>
{/if}
{if isset($carrier)}
<th class="header small" valign="middle">{l s='Carrier' pdf='true'}</th>
{/if}
</tr>
<tr>
<td class="center small white">{$title|escape:'html':'UTF-8'}</td>
<td class="center small white">{dateFormat date=$order->invoice_date full=0}</td>
<td class="center small white">{$order->getUniqReference()}</td>
<td class="center small white">{dateFormat date=$order->date_add full=0}</td>
{if $addresses.invoice->vat_number}
<td class="center small white">
{$addresses.invoice->vat_number}
</td>
{/if}
{if isset($carrier)}
<td class="center small white">{$carrier->name}</td>
{/if}
</tr>
</table>

 

 

 

You can of course move this above the other td class lines to locate it in a different order on the pdf.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...