1.9

From the administrator section it is possible to generate an invoice for each order with status "Confirmed".

The invoices are generated through a PHP-Template file that contain mostly HTML code. This default template can be customized in structure and layout by editing the following file:
/components/com_vikrentcar/helpers/invoices/invoice_tmpl.php

By opening that file with a good text-editor, you will find a list of available "special tags" that will be replaced by the system with specific values of the order/invoice. You can enclose all the following information within the template-file of the invoice:

/*
Special Tags Available for the generation of the invoices:

{company_logo}
{company_info}
{invoice_number}
{invoice_suffix}
{invoice_date}
{invoice_products_descriptions}
{customer_info}
{invoice_totalnet}
{invoice_totaltax}
{invoice_grandtotal}

*/

By saving the file and re-uploading it via FTP onto the original directory, the system will generate the new invoices with this layout.

If the invoices are generated as an empty/blank PDF file, it means that your current HTML structure is breaking the DOM rules, making the file unreadable. In this case it is necessary to take out some parts of HTML code until the files get generated correctly. A common markup error in HTML is to enclose a TABLE within a Paragraph (P) tag because that's not allowed.

Last Update: 2015-09-30 12:40
Helpful?
50% of people found this helpful.
This site uses cookies. By continuing to browse you accept their use. Further information