Answers.Body: <p>Look in your civicrm.settings.php (in wp-content/uploads/civicrm). There's a line that says:</p>
  
  <p>define( 'CIVICRM_MAIL_SMARTY', 0 );</p>
  
  <p>Change it to</p>
  
  <p>define( 'CIVICRM_MAIL_SMARTY', 1 );</p>
  
  <p>See <a href="https://docs.civicrm.org/user/en/latest/common-workflows/tokens-and-mail-merge/#smarty" rel="nofollow noreferrer">https://docs.civicrm.org/user/en/latest/common-workflows/tokens-and-mail-merge/#smarty</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-24T02:41:46.857Z
Answers.Text: D'oh! Thank you so much. Overlooked that clearly very important tidbit. Looks great now! Thanks again.
Answers.UserDisplayName: Matt Woodward
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-24T02:50:08.817Z
Answers.Text: Great!  . . . . . . . .
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-24T02:21:52.363Z
Answers.LastActivityDate: 2019-01-24T02:21:52.363Z
Answers.UserDisplayName: Demerit
Body: <p>I'm sure I'm missing something basic, but following the various documentation and examples I've seen I can't get {$contribution_aggregate} to actually output the aggregate contributions for a donor, it just outputs literally that text.</p>
  
  <p>Steps I'm taking:</p>
  
  <ol>
  <li>Find contributions, select the ones I want to include in a thank you letter</li>
  <li>Select "Thank You Letters - print or email"</li>
  <li>Select Group contributions by contact</li>
  <li>Separator: Vertical table cell</li>
  <li>Print and email options: Generate PDFs for printing (just don't want to email until it's correct of course)</li>
  <li>Document body: to test I'm literally just putting {$contribution_aggregate} in the body</li>
  <li>Click "Make Thank-you Letters"</li>
  </ol>
  
  <p>And the resultant PDF literally just has {$contribution_aggreate} in it.</p>
  
  <p>I'm on CiviCRM 5.9.0 on WordPress 5.0.3.</p>
  
  <p>Thanks for any guidance anyone can provide!</p>
  
Tags: <message-templates>
Title: {$contribution_aggregate} not outputting in message template
ThreadText: # {$contribution_aggregate} not outputting in message template
  
  (Asked by: username_0 on 2019-01-24)
  
  I'm sure I'm missing something basic, but following the various documentation and examples I've seen I can't get {$contribution\_aggregate} to actually output the aggregate contributions for a donor, it just outputs literally that text.
  
  Steps I'm taking:
  
  1. Find contributions, select the ones I want to include in a thank you letter
  2. Select "Thank You Letters - print or email"
  3. Select Group contributions by contact
  4. Separator: Vertical table cell
  5. Print and email options: Generate PDFs for printing (just don't want to email until it's correct of course)
  6. Document body: to test I'm literally just putting {$contribution\_aggregate} in the body
  7. Click "Make Thank-you Letters"
  
  And the resultant PDF literally just has {$contribution\_aggreate} in it.
  
  I'm on CiviCRM 5.9.0 on WordPress 5.0.3.
  
  Thanks for any guidance anyone can provide!
  
  **Tags:** message-templates
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-01-24. Score: 3 | Accepted answer
  
  Look in your civicrm.settings.php (in wp-content/uploads/civicrm). There's a line that says:
  
  define( 'CIVICRM\_MAIL\_SMARTY', 0 );
  
  Change it to
  
  define( 'CIVICRM\_MAIL\_SMARTY', 1 );
  
  See <https://docs.civicrm.org/user/en/latest/common-workflows/tokens-and-mail-merge/#smarty>
  
  > **Comments:**
  > **username_0**: D'oh! Thank you so much. Overlooked that clearly very important tidbit. Looks great now! Thanks again.  
  > **username_1**: Great!  . . . . . . . .  
  
  ---
  
  