hello
i added cost for print field and i want to sum the total of each row and print it out
i am using this code but the total is 0 any help in this
{% set grand_total = 0 %}
{% for row in doc.items %}
{% set row_total = (row.qty|float) * (row.cost_for_print|float) %}
{% set grand_total = grand_total + row_total %}
{% endfor %}