V5 Feature Request :: Invoice Design: include more clear documentation in docs/custom-fields/

While working on customizing templates in v5, it appears as though documentation is not clear about the fields that are being used within the “Body” design tab within the HTML template.

For example, here is an excerpt from an existing invoice design “Body” contents:

<div id="body">
    <div class="header-container">
        <img src="$company.logo" class="company-logo" alt="$company.name logo">

        <div id="company-details"></div>
        <div id="company-address"></div>



Please notice how some IDs appear to be used such as company-details and company-address that have a side effect of populating actual data into these regions aside from actually applying CSS styling. These are clearly populated in the invoice preview to the right, but I’m not finding what fields exist that can be used programmatically in the html that will be replaced within the documentation referenced here:

I’m thinking that perhaps it’s correlating to the $company.details variable and extrapolates this via company-details, but this doesn’t seem to be documented anywhere (neither does it explicitly tell us that $company.details exists in either the documentation nor the sample fields below in the settings tab) and so I’m figuring that this is simply an oversight in documentation at this point…


Yes this is a bit of a black box, I’ll try and explain as best I can.

To allow some customization in the UI we allow users to drag and drop the order of each individual field, ie company-details you can add and remove properties and also reorder them. The default list for each of these properties is listed below:

$variables = [
            'client_details' => [
            'company_details' => [
            'company_address' => [
            'invoice_details' => [
            'quote_details' => [
            'credit_details' => [
            'product_columns' => [
            'task_columns' =>[
            'total_columns' => [

Note you can remove all of our default properties and insert whichever individual properties you like anywhere in the invoice design. The only thing that cannot be fully customised is the product table itself as we execute that at a completely different level.

1 Like

Interesting, I completely missed that there was another set of fields and that those correlated with the IDs and that not only the order can be customized therein, but that also the individual variables (fields/attributes) can be altogether removed:

Thanks for indicating that these exist!