Answers.Body: <p>If you go to civicrm/admin/messageTemplates?reset=1 you should see two tabs, one of which should say 'System Workflow Messages'. If you click on that you should find a list such as "Contributions - Receipt (off-line)"</p>
  
  <p>If you Edit those you should then be able to insert tokens such as {$contributionID} in to the 'header' section. Such as we use the following so we can either say</p>
  
  <p>Invoice: 23456</p>
  
  <p>or </p>
  
  <p>Receipt: 23456</p>
  
  <p>depending on whether the payment was completed or not</p>
  
  <p>
  {if $is_pay_later}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} No:{$contributionID}</p>
  
  <p>and that goes after we have put in the client logo and address etc in between the BEGIN and END HEADER</p>
  
  <p>If that is not working for you then you might need to tell us your civi version and consider upgrading to latest version (as i recall some earlier versions had issues similar to this).</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-18T07:42:33.443Z
Answers.Text: I find the item you mentioned, but it doesn't show up in the same formatting as displayed in the email. None of the static wording is the same. I'll post the updated information above and currently I am using version 4.7.15
Answers.UserDisplayName: Matthew
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-18T18:05:01.937Z
Answers.Text: I edited above to include an example string using the token. hth
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-18T06:50:24.933Z
Answers.LastActivityDate: 2017-01-18T18:01:56.060Z
Answers.LastEditDate: 2017-01-18T18:01:56.060Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>I am facing an odd issue, below is my "Membership Confirmation &amp; Receipt" but it is missing the transaction ID, and it is missing the check number when I record the transaction as a check. But I cannot find "Membership Confirmation &amp; Receipt in my message templates in the system workflow message templates page. </p>
  
  <p>So where would I go to add those two field? I'm lost as to where I can edit this template when it isn't in the place it should be.</p>
  
  <p>Thanks! Matt</p>
  
  <p><a href="https://i.sstatic.net/46FBE.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/46FBE.jpg" alt="enter image description here"></a></p>
  
  <p><strong>UPDATED INFORMATION -- 2017 JAN 18</strong></p>
  
  <p>Below is the HTML format for the Message Template for the Contributions - Receipt (off-line) at least what is available to me.</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
   &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
   &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
  {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
  {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
  
  &lt;center&gt;
   &lt;table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;"&gt;
  
    &lt;!-- BEGIN HEADER --&gt;
    &lt;!-- You can add table row(s) here with logo or other header elements --&gt;
    &lt;!-- END HEADER --&gt;
  
    &lt;!-- BEGIN CONTENT --&gt;
  
    &lt;tr&gt;
     &lt;td&gt;
  
      {if $formValues.receipt_text}
       &lt;p&gt;{$formValues.receipt_text|htmlize}&lt;/p&gt;
      {else}
       &lt;p&gt;{ts}Thank you for your support.{/ts}&lt;/p&gt;
      {/if}
  
      &lt;p&gt;{ts}Please print this receipt for your records.{/ts}&lt;/p&gt;
  
     &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
     &lt;td&gt;
      &lt;table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"&gt;
       &lt;tr&gt;
        &lt;th {$headerStyle}&gt;
         {ts}Contribution Information{/ts}
        &lt;/th&gt;
       &lt;/tr&gt;
       &lt;tr&gt;
        &lt;td {$labelStyle}&gt;
         {ts}Financial Type{/ts}
        &lt;/td&gt;
        &lt;td {$valueStyle}&gt;
         {$formValues.contributionType_name}
        &lt;/td&gt;
       &lt;/tr&gt;
  
       {if $lineItem and !$is_quick_config}
        {foreach from=$lineItem item=value key=priceset}
         &lt;tr&gt;
          &lt;td colspan="2" {$valueStyle}&gt;
           &lt;table&gt; {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
            &lt;tr&gt;
             &lt;th&gt;{ts}Item{/ts}&lt;/th&gt;
             &lt;th&gt;{ts}Qty{/ts}&lt;/th&gt;
             &lt;th&gt;{ts}Each{/ts}&lt;/th&gt;
             {if $getTaxDetails}
               &lt;th&gt;{ts}Subtotal{/ts}&lt;/th&gt;
               &lt;th&gt;{ts}Tax Rate{/ts}&lt;/th&gt;
               &lt;th&gt;{ts}Tax Amount{/ts}&lt;/th&gt;
             {/if}
             &lt;th&gt;{ts}Total{/ts}&lt;/th&gt;
            &lt;/tr&gt;
            {foreach from=$value item=line}
             &lt;tr&gt;
              &lt;td&gt;
              {if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}&lt;div&gt;{$line.description|truncate:30:"..."}&lt;/div&gt;{/if}
              &lt;/td&gt;
              &lt;td&gt;
               {$line.qty}
              &lt;/td&gt;
              &lt;td&gt;
               {$line.unit_price|crmMoney:$currency}
              &lt;/td&gt;
              {if $getTaxDetails}
                &lt;td&gt;
                  {$line.unit_price*$line.qty|crmMoney:$currency}
                &lt;/td&gt;
                {if $line.tax_rate != "" || $line.tax_amount != ""}
                  &lt;td&gt;
                    {$line.tax_rate|string_format:"%.2f"}%
                  &lt;/td&gt;
                  &lt;td&gt;
                    {$line.tax_amount|crmMoney:$currency}
                  &lt;/td&gt;
                {else}
                  &lt;td&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;/td&gt;
                {/if}
              {/if}
              &lt;td&gt;
               {$line.line_total+$line.tax_amount|crmMoney:$currency}
              &lt;/td&gt;
             &lt;/tr&gt;
            {/foreach}
           &lt;/table&gt;
          &lt;/td&gt;
         &lt;/tr&gt;
        {/foreach}
       {/if}
       {if $getTaxDetails &amp;&amp; $dataArray}
         &lt;tr&gt;
           &lt;td {$labelStyle}&gt;
             {ts} Amount before Tax : {/ts}
           &lt;/td&gt;
           &lt;td {$valueStyle}&gt;
             {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency}
           &lt;/td&gt;
         &lt;/tr&gt;
  
        {foreach from=$dataArray item=value key=priceset}
          &lt;tr&gt;
          {if $priceset ||  $priceset == 0 || $value != ''}
            &lt;td&gt;&amp;nbsp;{$taxTerm} {$priceset|string_format:"%.2f"}%&lt;/td&gt;
            &lt;td&gt;&amp;nbsp;{$value|crmMoney:$currency}&lt;/td&gt;
          {else}
            &lt;td&gt;&amp;nbsp;{ts}No{/ts} {$taxTerm}&lt;/td&gt;
            &lt;td&gt;&amp;nbsp;{$value|crmMoney:$currency}&lt;/td&gt;
          {/if}
          &lt;/tr&gt;
        {/foreach}
       {/if}
  
       {if isset($totalTaxAmount) &amp;&amp; $totalTaxAmount !== 'null'}
        &lt;tr&gt;
          &lt;td {$labelStyle}&gt;
            {ts}Total Tax Amount{/ts}
          &lt;/td&gt;
          &lt;td {$valueStyle}&gt;
            {$totalTaxAmount|crmMoney:$currency}
          &lt;/td&gt;
        &lt;/tr&gt;
       {/if}
  
       &lt;tr&gt;
        &lt;td {$labelStyle}&gt;
         {ts}Total Amount{/ts}
        &lt;/td&gt;
        &lt;td {$valueStyle}&gt;
         {$formValues.total_amount|crmMoney:$currency}
        &lt;/td&gt;
       &lt;/tr&gt;
  
       {if $receive_date}
        &lt;tr&gt;
         &lt;td {$labelStyle}&gt;
          {ts}Date Received{/ts}
         &lt;/td&gt;
         &lt;td {$valueStyle}&gt;
          {$receive_date|truncate:10:''|crmDate}
         &lt;/td&gt;
        &lt;/tr&gt;
       {/if}
  
        {if $receipt_date}
        &lt;tr&gt;
         &lt;td {$labelStyle}&gt;
          {ts}Receipt Date{/ts}
         &lt;/td&gt;
         &lt;td {$valueStyle}&gt;
          {$receipt_date|truncate:10:''|crmDate}
         &lt;/td&gt;
        &lt;/tr&gt;
       {/if}
  
       {if $formValues.paidBy and !$formValues.hidden_CreditCard}
        &lt;tr&gt;
         &lt;td {$labelStyle}&gt;
          {ts}Paid By{/ts}
         &lt;/td&gt;
         &lt;td {$valueStyle}&gt;
          {$formValues.paidBy}
         &lt;/td&gt;
        &lt;/tr&gt;
        {if $formValues.check_number}
         &lt;tr&gt;
          &lt;td {$labelStyle}&gt;
           {ts}Check Number{/ts}
          &lt;/td&gt;
          &lt;td {$valueStyle}&gt;
           {$formValues.check_number}
          &lt;/td&gt;
         &lt;/tr&gt;
        {/if}
       {/if}
  
       {if $formValues.trxn_id}
        &lt;tr&gt;
         &lt;td {$labelStyle}&gt;
          {ts}Transaction ID{/ts}
         &lt;/td&gt;
         &lt;td {$valueStyle}&gt;
          {$formValues.trxn_id}
         &lt;/td&gt;
        &lt;/tr&gt;
       {/if}
  
       {if $ccContribution}
        &lt;tr&gt;
         &lt;th {$headerStyle}&gt;
          {ts}Billing Name and Address{/ts}
         &lt;/th&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
         &lt;td colspan="2" {$valueStyle}&gt;
          {$billingName}&lt;br /&gt;
          {$address|nl2br}
         &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
         &lt;th {$headerStyle}&gt;
          {ts}Credit Card Information{/ts}
         &lt;/th&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
         &lt;td colspan="2" {$valueStyle}&gt;
          {$credit_card_type}&lt;br /&gt;
          {$credit_card_number}&lt;br /&gt;
          {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
         &lt;/td&gt;
        &lt;/tr&gt;
       {/if}
  
       {if $softCreditTypes and $softCredits}
        {foreach from=$softCreditTypes item=softCreditType key=n}
         &lt;tr&gt;
          &lt;th {$headerStyle}&gt;
           {$softCreditType}
          &lt;/th&gt;
         &lt;/tr&gt;
         {foreach from=$softCredits.$n item=value key=label}
           &lt;tr&gt;
            &lt;td {$labelStyle}&gt;
             {$label}
            &lt;/td&gt;
            &lt;td {$valueStyle}&gt;
             {$value}
            &lt;/td&gt;
           &lt;/tr&gt;
          {/foreach}
         {/foreach}
       {/if}
  
       {if $customGroup}
        {foreach from=$customGroup item=value key=customName}
         &lt;tr&gt;
          &lt;th {$headerStyle}&gt;
           {$customName}
          &lt;/th&gt;
         &lt;/tr&gt;
         {foreach from=$value item=v key=n}
          &lt;tr&gt;
           &lt;td {$labelStyle}&gt;
            {$n}
           &lt;/td&gt;
           &lt;td {$valueStyle}&gt;
            {$v}
           &lt;/td&gt;
          &lt;/tr&gt;
         {/foreach}
        {/foreach}
       {/if}
  
       {if $formValues.product_name}
        &lt;tr&gt;
         &lt;th {$headerStyle}&gt;
          {ts}Premium Information{/ts}
         &lt;/th&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
         &lt;td colspan="2" {$labelStyle}&gt;
          {$formValues.product_name}
         &lt;/td&gt;
        &lt;/tr&gt;
        {if $formValues.product_option}
         &lt;tr&gt;
          &lt;td {$labelStyle}&gt;
           {ts}Option{/ts}
          &lt;/td&gt;
          &lt;td {$valueStyle}&gt;
           {$formValues.product_option}
          &lt;/td&gt;
         &lt;/tr&gt;
        {/if}
        {if $formValues.product_sku}
         &lt;tr&gt;
          &lt;td {$labelStyle}&gt;
           {ts}SKU{/ts}
          &lt;/td&gt;
          &lt;td {$valueStyle}&gt;
           {$formValues.product_sku}
          &lt;/td&gt;
         &lt;/tr&gt;
        {/if}
        {if $fulfilled_date}
         &lt;tr&gt;
          &lt;td {$labelStyle}&gt;
           {ts}Sent{/ts}
          &lt;/td&gt;
          &lt;td {$valueStyle}&gt;
           {$fulfilled_date|truncate:10:''|crmDate}
          &lt;/td&gt;
         &lt;/tr&gt;
        {/if}
       {/if}
  
      &lt;/table&gt;
     &lt;/td&gt;
    &lt;/tr&gt;
  
   &lt;/table&gt;
  &lt;/center&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-01-18T18:48:46.890Z
Comments.Text: Looks like you pasted from the Contributions - Receipt (off-line) template. But your screenshot is referencing Memberships so perhaps you are looking at the wrong template which is why what you pasted has "Contribution Information" in it but your screenshot has "Membership Information"
Comments.UserDisplayName: petednz - fuzion
Tags: <civimail><civimember><message-templates>
Title: Membership Confirmation & Receipt Message Template
ThreadText: # Membership Confirmation & Receipt Message Template
  
  (Asked by: username_0 on 2017-01-18)
  
  I am facing an odd issue, below is my "Membership Confirmation & Receipt" but it is missing the transaction ID, and it is missing the check number when I record the transaction as a check. But I cannot find "Membership Confirmation & Receipt in my message templates in the system workflow message templates page. 
  So where would I go to add those two field? I'm lost as to where I can edit this template when it isn't in the place it should be.
  Thanks! Matt
  
  UPDATED INFORMATION -- 2017 JAN 18
  Below is the HTML format for the Message Template for the Contributions - Receipt (off-line) at least what is available to me.
  
  
  
   
   
  
  
  
  {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
  {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
  {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
  
  
   
  
    
    
    
  
    
  
    
     
  
      {if $formValues.receipt_text}
       {$formValues.receipt_text|htmlize}
      {else}
       {ts}Thank you for your support.{/ts}
      {/if}
  
      {ts}Please print this receipt for your records.{/ts}
  
     
    
    
     
      
       
        
         {ts}Contribution Information{/ts}
        
       
       
        
         {ts}Financial Type{/ts}
        
        
         {$formValues.contributionType_name}
        
       
  
       {if $lineItem and !$is_quick_config}
        {foreach from=$lineItem item=value key=priceset}
         
          
            {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
            
             {ts}Item{/ts}
             {ts}Qty{/ts}
             {ts}Each{/ts}
             {if $getTaxDetails}
               {ts}Subtotal{/ts}
               {ts}Tax Rate{/ts}
               {ts}Tax Amount{/ts}
             {/if}
             {ts}Total{/ts}
            
            {foreach from=$value item=line}
             
              
              {if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}{$line.description|truncate:30:"..."}{/if}
              
              
               {$line.qty}
              
              
               {$line.unit_price|crmMoney:$currency}
              
              {if $getTaxDetails}
                
                  {$line.unit_price*$line.qty|crmMoney:$currency}
                
                {if $line.tax_rate != "" || $line.tax_amount != ""}
                  
                    {$line.tax_rate|string_format:"%.2f"}%
                  
                  
                    {$line.tax_amount|crmMoney:$currency}
                  
                {else}
                  
                  
                {/if}
              {/if}
              
               {$line.line_total+$line.tax_amount|crmMoney:$currency}
              
             
            {/foreach}
           
          
         
        {/foreach}
       {/if}
       {if $getTaxDetails && $dataArray}
         
           
             {ts} Amount before Tax : {/ts}
           
           
             {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency}
           
         
  
        {foreach from=$dataArray item=value key=priceset}
          
          {if $priceset ||  $priceset == 0 || $value != ''}
             {$taxTerm} {$priceset|string_format:"%.2f"}%
             {$value|crmMoney:$currency}
          {else}
             {ts}No{/ts} {$taxTerm}
             {$value|crmMoney:$currency}
          {/if}
          
        {/foreach}
       {/if}
  
       {if isset($totalTaxAmount) && $totalTaxAmount !== 'null'}
        
          
            {ts}Total Tax Amount{/ts}
          
          
            {$totalTaxAmount|crmMoney:$currency}
          
        
       {/if}
  
       
        
         {ts}Total Amount{/ts}
        
        
         {$formValues.total_amount|crmMoney:$currency}
        
       
  
       {if $receive_date}
        
         
          {ts}Date Received{/ts}
         
         
          {$receive_date|truncate:10:''|crmDate}
         
        
       {/if}
  
        {if $receipt_date}
        
         
          {ts}Receipt Date{/ts}
         
         
          {$receipt_date|truncate:10:''|crmDate}
         
        
       {/if}
  
       {if $formValues.paidBy and !$formValues.hidden_CreditCard}
        
         
          {ts}Paid By{/ts}
         
         
          {$formValues.paidBy}
         
        
        {if $formValues.check_number}
         
          
           {ts}Check Number{/ts}
          
          
           {$formValues.check_number}
          
         
        {/if}
       {/if}
  
       {if $formValues.trxn_id}
        
         
          {ts}Transaction ID{/ts}
         
         
          {$formValues.trxn_id}
         
        
       {/if}
  
       {if $ccContribution}
        
         
          {ts}Billing Name and Address{/ts}
         
        
        
         
          {$billingName}
          {$address|nl2br}
         
        
        
         
          {ts}Credit Card Information{/ts}
         
        
        
         
          {$credit_card_type}
          {$credit_card_number}
          {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
         
        
       {/if}
  
       {if $softCreditTypes and $softCredits}
        {foreach from=$softCreditTypes item=softCreditType key=n}
         
          
           {$softCreditType}
          
         
         {foreach from=$softCredits.$n item=value key=label}
           
            
             {$label}
            
            
             {$value}
            
           
          {/foreach}
         {/foreach}
       {/if}
  
       {if $customGroup}
        {foreach from=$customGroup item=value key=customName}
         
          
           {$customName}
          
         
         {foreach from=$value item=v key=n}
          
           
            {$n}
           
           
            {$v}
           
          
         {/foreach}
        {/foreach}
       {/if}
  
       {if $formValues.product_name}
        
         
          {ts}Premium Information{/ts}
         
        
        
         
          {$formValues.product_name}
         
        
        {if $formValues.product_option}
         
          
           {ts}Option{/ts}
          
          
           {$formValues.product_option}
          
         
        {/if}
        {if $formValues.product_sku}
         
          
           {ts}SKU{/ts}
          
          
           {$formValues.product_sku}
          
         
        {/if}
        {if $fulfilled_date}
         
          
           {ts}Sent{/ts}
          
          
           {$fulfilled_date|truncate:10:''|crmDate}
          
         
        {/if}
       {/if}
  
  **Tags:** civimail, civimember, message-templates
  
  > **Comments:**
  > **username_1**: Looks like you pasted from the Contributions - Receipt (off-line) template. But your screenshot is referencing Memberships so perhaps you are looking at the wrong template which is why what you pasted has "Contribution Information" in it but your screenshot has "Membership Information"  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-01-18. Score: 1
  
  If you go to civicrm/admin/messageTemplates?reset=1 you should see two tabs, one of which should say 'System Workflow Messages'. If you click on that you should find a list such as "Contributions - Receipt (off-line)"
  
  If you Edit those you should then be able to insert tokens such as {$contributionID} in to the 'header' section. Such as we use the following so we can either say
  
  Invoice: 23456
  
  or
  
  Receipt: 23456
  
  depending on whether the payment was completed or not
  
  {if $is\_pay\_later}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} No:{$contributionID}
  
  and that goes after we have put in the client logo and address etc in between the BEGIN and END HEADER
  
  If that is not working for you then you might need to tell us your civi version and consider upgrading to latest version (as i recall some earlier versions had issues similar to this).
  
  > **Comments:**
  > **username_0**: I find the item you mentioned, but it doesn't show up in the same formatting as displayed in the email. None of the static wording is the same. I'll post the updated information above and currently I am using version 4.7.15  
  > **username_1**: I edited above to include an example string using the token. hth  
  
  ---
  
  