Trying to display a variable total in a sub template.
I have a client that is requesting to display page totals on each page. Normally this is easy by using the add-page-total and show-page-total logic but they want the output to be RTF. I used the set_variable and get_variable logic to accumulate the price totals as each line is displayed in a for-each loop. I can't seem to get the variable to reset to zero when the header is used, which is a sub template using form fields called from the page header. Also, I can't get the total to display in a footer sub template. I can get the