Answers.Body: <p>This Fuzion <a href="https://github.com/eileenmcnaughton/nz.co.fuzion.civitoken" rel="nofollow noreferrer">extension</a> would be worth checking out, and if it doesn't provide the required token, could have a PR with the required code, which might be better than a standalone extension for this problem</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-02T14:14:59.427Z
Answers.Text: Thanks for the suggestion. I already have this extension installed, but looking at it again, I see "it will also pick up extra token files if you define a custom php folder and put the token files in it. ie. it will look in $customPHPPathDir/tokens and pick up files ending in .inc in that folder". I'll have to figure out how to make use of that!
Answers.UserDisplayName: Phil Morice Brubaker
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-02T18:50:16.033Z
Answers.Text: maybe worth a +1 as a helpful answer? StackExchange doesn't like Questions that have Answers that all have 0
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-02T18:51:42.453Z
Answers.Text: i ask because otherwise these 0 tickets just keep being bounced back to the top of the list by SE until they get some sort of ranking. You can even +1 both answers if they have both been helpful even if not the full/correct solution
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-01T03:43:55.317Z
Answers.LastActivityDate: 2017-10-01T03:43:55.317Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>First, tokens do not contain $ sign so it should be <code>{event.balance}</code> but :</p>
  
  <ol>
  <li><p>you should use the token dropdown list to insert the code when possible to avoid problems</p></li>
  <li><p>the only way to use event tokens is in schedule reminders apparently - it could be good to have them when doing letters from the participant search but it doesn't seems to be implemented yet</p></li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-02T20:19:52.947Z
Answers.Text: 2 issues that seems related : https://issues.civicrm.org/jira/browse/CRM-16734 / https://issues.civicrm.org/jira/browse/CRM-16599
Answers.UserDisplayName: samuelsov
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-29T18:42:30.613Z
Answers.LastActivityDate: 2017-09-29T18:42:30.613Z
Answers.UserDisplayName: samuelsov
Body: <p>I'm having trouble getting the event.balance token to display properly in emails. I've tried {event.balance} (which breaks Smarty so it doesn't send the email) and {$event.balance} (which is returned with [blank]). Is there some smarty capture or other declaration that I need to do?</p>
  
  <p>My test participant shows $300 paid of $1000 total fee, so I am expecting the token to resolve to "$700.00"</p>
  
  <p>Civi 4.7.21 Joomla 3.7.5</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-09-29T18:43:13.903Z
Comments.Text: Can you add the context in which you try to add the token ?
Comments.UserDisplayName: samuelsov
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-09-29T19:34:35.157Z
Comments.Text: The context is sending participant emails through Find Participants. If, as you say, event tokens are only available in scheduled reminders, that explains why Event Balance isn't available isn't in the token drop-down. That seems like a real limitation, though. I'd rather not schedule my reminders, but I want to let participants know how much they still owe. It also seems strange that Balance is an Event token, rather than Participant.
Comments.UserDisplayName: Phil Morice Brubaker
Tags: <civievent><tokens><partial-payments>
Title: Using event.balance token
ThreadText: # Using event.balance token
  
  (Asked by: username_0 on 2017-09-29)
  
  I'm having trouble getting the event.balance token to display properly in emails. I've tried {event.balance} (which breaks Smarty so it doesn't send the email) and {$event.balance} (which is returned with [blank]). Is there some smarty capture or other declaration that I need to do?
  
  My test participant shows $300 paid of $1000 total fee, so I am expecting the token to resolve to "$700.00"
  
  Civi 4.7.21 Joomla 3.7.5
  
  **Tags:** civievent, tokens, partial-payments
  
  > **Comments:**
  > **username_1**: Can you add the context in which you try to add the token ?  
  > **username_0**: The context is sending participant emails through Find Participants. If, as you say, event tokens are only available in scheduled reminders, that explains why Event Balance isn't available isn't in the token drop-down. That seems like a real limitation, though. I'd rather not schedule my reminders, but I want to let participants know how much they still owe. It also seems strange that Balance is an Event token, rather than Participant.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2017-10-01. Score: 2
  
  This Fuzion [extension](https://github.com/eileenmcnaughton/nz.co.fuzion.civitoken) would be worth checking out, and if it doesn't provide the required token, could have a PR with the required code, which might be better than a standalone extension for this problem
  
  > **Comments:**
  > **username_0**: Thanks for the suggestion. I already have this extension installed, but looking at it again, I see "it will also pick up extra token files if you define a custom php folder and put the token files in it. ie. it will look in $customPHPPathDir/tokens and pick up files ending in .inc in that folder". I'll have to figure out how to make use of that!  
  > **username_2**: maybe worth a +1 as a helpful answer? StackExchange doesn't like Questions that have Answers that all have 0  
  > **username_2**: i ask because otherwise these 0 tickets just keep being bounced back to the top of the list by SE until they get some sort of ranking. You can even +1 both answers if they have both been helpful even if not the full/correct solution  
  
  ---
  
  ### Answer by username_1 on 2017-09-29. Score: 0
  
  First, tokens do not contain $ sign so it should be `{event.balance}` but :
  
  1. you should use the token dropdown list to insert the code when possible to avoid problems
  2. the only way to use event tokens is in schedule reminders apparently - it could be good to have them when doing letters from the participant search but it doesn't seems to be implemented yet
  
  > **Comments:**
  > **username_1**: 2 issues that seems related : https://issues.civicrm.org/jira/browse/CRM-16734 / https://issues.civicrm.org/jira/browse/CRM-16599  
  
  ---
  
  