Since version 1.5.0 it is possible that you show the descriptions on the invoices. The most important information at a glance:
- Invoices that have already been created will not be updated. After the function is activated, newly created invoices will contain the descriptions.
- The description will only be added if you enable this in the module settings. By default, this function is disabled.
- The description is added only if the customer has entered a description for the product.
- You can add a text before and after the description using the language file. Multi language is supported.
...
Code Block | ||||
---|---|---|---|---|
| ||||
$_LANG['cpd_invoiceDescriptionPrefix'] = '"Your description:'"; // left of the description. $_LANG['cpd_invoiceDescriptionSuffix'] = ''""; // right of the description. empty by default |
...
At the end of this page you will learn how to create an override language file so that your changes will not be overwritten during an update.
Adding break lines
You can add more line breaks via the language file by inserting a "\n" at the beginning or at the end. An example:
Code Block | ||
---|---|---|
| ||
$_LANG['cpd_invoiceDescriptionPrefix'] = "\nYour description:\n";
$_LANG['cpd_invoiceDescriptionSuffix'] = "\n\nSome text"; |
This will result in following output: