Skip to main content

14.2 Products block within PDF templates

For the Quotes, Sales Orders, Purchase Orders and Invoices modules, you can insert the product block into the templates. There are predefined product block models that can be quickly inserted into the template.
To insert a product block model, select the block type and press Insert in the template button. The table corresponding to the product block will be created. You can customise the block later as if you were working on a table. It is possible to create custom tables for the offer rows; the basic structure must be as follows:

  • a row with the header of all the columns;
  • a line with the #PRODUCTBLOC_START# tag that marks the beginning of the portion that must be repeated for each line on offer;
  • a line with line variables;
  • a line with the #PRODUCTBLOC_END# tag that marks the end of the portion that must be repeated for each line on offer.

intestazione_1

intestazione_2

intestazione_3

intestazione_4

….

intestazione_n

#PRODUCTBLOC_START#

variabile_1

variabile_2

variabile_3

variabile_4

variabile_n

#PRODUCTBLOC_END#

The start and end-block tags are found as variables in:

14.2 [1].PNG

It is possible to insert the variables of the product block through the functions available in the Product Block tab:

14.2 [2].png