We would like to add the contribution Financial Type to the Contribution (On-line) receipt template, so we communicate clearly to our donors where their money has gone. (Our Financial Types are named after certain funds: General Fund, Child Sponsorship Fund, Building Fund, etc.). We're not using Price Sets. We're on Civi 4.6 and Drupal 7.
In the Contribution (Off-line) template, there is this section of the template code:
<tr>
<td {$labelStyle}>
{ts}Financial Type{/ts}
</td>
<td {$valueStyle}>
{$formValues.contributionType_name}
</td>
</tr>
Because the "off-line" New Contribution screen specifically asks for which Financial Type the transaction is, the above code is pulling the Contribution Type into the receipt template from the input value in the form. I'm tracking with that.
But for the Online contribution template, the Financial Type isn't being selected from the form itself. Rather the Financial Type is set on the Manage Contribution screen for each contribution page. Financial Type isn't listed as a token in the template screen, so I tried the answer from Is there a token for contribution type?, {contribution.financial_type}
. I'm afraid that didn't work. I checked debugging with &smartyDebug=1
, but I couldn't find anything loaded in the contribution form that might work.
How is the Financial Type being transmitted to the Online Contribution page? Any ideas for a token or option I'm not seeing?