That shouldn’t work and this is not surprising since you didn’t include any of the attributes described in post #6.
For example, for total, take this line in your theme:
<td colspan="{{ table.columns | size | minus:1 }}" style="text-align: end; padding: 5px 10px{% if total.emphasis == true %}; font-weight: bold{% endif %}">{{ total.label }}</td>
You need to:
-
add
{% if total.label == "X" %} id="Total"{% endif %}
in order for it to recognize the total. -
add
{% if total.label contains "Y" %} class="taxAmount"{% endif %}
in order for it to recognize the tax. -
add
data-value="{{ total. number }}"
The end result is this:
<td {% if total.label == "X" %} id="Total" {% endif %}{% if total.label contains "Y" %} class="taxAmount"{% endif %} data-value="{{ total. number }}" colspan="{{ table.columns | size | minus:1 }}" style="text-align: end; padding: 5px 10px{% if total.emphasis == true %}; font-weight: bold{% endif %}">{{ total.label }}</td>
Change the X to the label of total and change Y to the tax id string, eg. “VAT”