Search our documentation...

Simply enter what you are looking for!

WHMCS Invoice4U :: Template integration

Your users can download Invoice4U invoices directly from their client area invoice page.
For doing so, You will need to edit the following file –

templates/yourtemplate/clientareainvoices.tpl

You will need to add an empty “<th>” cell, and a new “<td>” cell with our content to the table that shows WHMCS’s invoices –

Html Code is as follows –

{if $invoices_enabled}
<th>&nbsp;</th>
{/if}
[ ... ]
{if $invoices_enabled}
<td class="textcenter">
{if $invoice.documents}
{foreach from=$invoice.documents key=type item=document}
<a href="/{$document.url}" class="btn">{$document.name}</a>
{/foreach}
{/if}
</td>
{/if}

Since WHMCS has it’s own internal invoicing system, It is also recommended to change the language file and replace “invoice” with “order”, so that invoices will be referred to the invoice4u system, and WHMCS’s will be treated as “order details”.

You can download the following example for an override language file –

WHMCS Invoice4U Language override

 

2013-05-07 164127