Configure data tables in HTML templates
Learn how to configure complex data tables in HTML templates to meet business requirements, including charge details and tax summary tables.
In HTML templates, you can configure complex data tables based on your business demands, for example, charge details tables, tax summary tables, and other tables.
-
If you want to start from scratch, choose the Data Table component to add a blank data table, and then customize it.
-
If you want to start from a sample template, choose a predefined table component to add an example data table, and then make adjustments as needed. The online HTML template editor provides certain components in the Content tab with predefined table configurations and common merge fields for billing documents, including invoices, credit memos, and debit memos. For more information, see Predefined data tables for billing documents .
The following tutorial demonstrates how to configure a charge details table. This tutorial takes invoices as an example; the configuration procedure is similar for credit memos and debit memos.
To configure a data table in an HTML template through the Zuora UI, perform the following steps.
- In the HTML template, click one Rows block, and then click Add Content in the Rows block. The Content tab is displayed in the right panel.
- In the Content tab, drag the Data Table component into the HTML template.
- Click the Data Table block in the HTML template. The Content panel is displayed on the right of the template editor.
- In the Data Table section, configure the following table information by adding different columns:
- In the Header section, configure styles to apply to the table headers, such as the font, font size, formatting, align, text color, and background color.
- In the Body section, configure styles to apply to the table body, such as the font, font size, formatting, alignment, text color, and background color.
- In the HTML template editor, click Save to save the HTML template.
The following image shows the data table that is displayed in the HTML template.