Answers.Body: <p>Yes - those should be removed - they haven't been around for quite a while. We have quite a number of variables being deprecated in upcoming versions I'm afraid as we are replacing them with more manageable variables or tokens where possible. So you are probably best to do the minimum intervention for now</p>
  <ul>
  <li>ie
  (remove the reference to contributeMode, if you need to have the zero amount check then use <code>{if {contribution.total_amount|boolean}}</code> instead of <code>!isAmountZero</code></li>
  </ul>
  <p>and then when you get onto 5.68 plan to do a thorough update / recustomisation of your event offline template (which has more deprecations in 5.68, but should be fairly stable after that).</p>
  <p>Also note you can delete rather than update the text versions of the template. If you do so a text version will be generated on the fly. Almost no-one or possibly absolutely no-one ever sees the text version</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-23T21:49:12.653Z
Answers.Text: Do I remove the whole of the lines?
  viz:
    {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
  ...and...
         {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
  
  Also, if I wholly delete the text section. it will not be regenerated on the saving the page but "on the fly" means when I use the template. Is that correct?
Answers.UserDisplayName: Hock
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-23T01:50:29.763Z
Answers.LastActivityDate: 2023-10-23T01:50:29.763Z
Answers.UserDisplayName: eileen
Body: <p>I have the following message after upgrading Civicrm to 5.66</p>
  <p>&quot;Outdated tokens in use
  You are using tokens that have been removed or deprecated.
  Please review your event_offline_receipt message template and remove references to the token {$contributeMode} as it has been replaced by {no longer available / relevant}
  Please review your event_offline_receipt message template and remove references to the token {$isAmountZero} as it has been replaced by {no longer available / relevant}&quot;</p>
  <p>In the template HTML format section I have;</p>
  <pre><code>  {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
  </code></pre>
  <p>Should this be removed?</p>
  <p>and...</p>
  <pre><code>   {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
  </code></pre>
  <p>Should this be also removed?</p>
  
Tags: <tokens><message-templates>
Title: Outdated tokens in use in message template
ThreadText: # Outdated tokens in use in message template
  
  (Asked by: username_0 on 2023-10-23)
  
  I have the following message after upgrading Civicrm to 5.66
  "Outdated tokens in use
  You are using tokens that have been removed or deprecated.
  Please review your event_offline_receipt message template and remove references to the token {$contributeMode} as it has been replaced by {no longer available / relevant}
  Please review your event_offline_receipt message template and remove references to the token {$isAmountZero} as it has been replaced by {no longer available / relevant}"
  In the template HTML format section I have;
    {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
  
  Should this be removed?
  and...
     {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
  
  Should this be also removed?
  
  **Tags:** tokens, message-templates
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-10-23. Score: 4
  
  Yes - those should be removed - they haven't been around for quite a while. We have quite a number of variables being deprecated in upcoming versions I'm afraid as we are replacing them with more manageable variables or tokens where possible. So you are probably best to do the minimum intervention for now
  
  * ie
    (remove the reference to contributeMode, if you need to have the zero amount check then use `{if {contribution.total_amount|boolean}}` instead of `!isAmountZero`
  
  and then when you get onto 5.68 plan to do a thorough update / recustomisation of your event offline template (which has more deprecations in 5.68, but should be fairly stable after that).
  
  Also note you can delete rather than update the text versions of the template. If you do so a text version will be generated on the fly. Almost no-one or possibly absolutely no-one ever sees the text version
  
  > **Comments:**
  > **username_0**: Do I remove the whole of the lines? viz:   {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} ...and...        {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}  Also, if I wholly delete the text section. it will not be regenerated on the saving the page but "on the fly" means when I use the template. Is that correct?  
  
  ---
  
  