Multiple Line Item Groups in PDF contract template

Good afternoon everyone,

I haven’t found anything related to my question. I’m sorry, if I have missed a related post.

My problem is that my PDF contract template doesn’t print all line item groups but only the first. How can I tell the PDF template to loop through the line item groups?

My HTML code looks something like this which is part of a larger table (I have also tried it as a separate table, with no luck):


...
<tr>
    <td>Name</td>
    <td>From date</td>
    <td>Until date</td>
</tr>
<tr>
    <td>$aos_line_item_groups_name</td>
    <td>$aos_contracts_start_date</td>
    <td>$aos_contracts_end_date</td>
</tr>
...

Does anyone know how to get this done?

Thank you very much

Cheers

Frank