Answers.Body: <p>Hi and welcome to the CiviCRM SE page!</p>
  
  <p>With respect to the membership type/product, those should be delineated in any membership receipt template without any additional customization needed.  And since you're working with Civi 4.1.3, if these are memberships on  behalf of an organization, the receipt should include the company name.  (This behavior doesn't work correctly in 5.x, unfortunately.)  If the company number is a custom field, you should be able to pull it in based on its ID number, located at the end of its editing link.  For example, ../civicrm/admin/custom/group/field/update?action=update&amp;reset=1&amp;gid=5&amp;id=11 would be referenced as {contact.custom_11} as a token.</p>
  
  <p>In the contribution template, the type of donation should already be included - is it not coming through, in your testing?</p>
  
  <p>With respect to the official registration details, how are those currently stored in Civi?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-19T05:27:32.153Z
Answers.Text: Hi @Lesley Carter - BackOffice
  
  the full details of the membership type/product does not come through with the membership receipt. Its says "membership dues" and it needs to have a second field showing the type of dues - Gold / Silver / Bronze / plus Student. 
  
  I need to find out how to find a field code for the type of membership due being made.
  
  The editing link - that information is very helpful. Is this an editing link?  
  https://contacts.mynonprofitgenericwebsite.org.au/civicrm/member/add?reset=1&action=add&context=standalone
Answers.UserDisplayName: Thomas S
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-27T14:33:26.483Z
Answers.Text: Can you add a screenshot of how the membership looks in Civi (not in the receipt)?  That would help us help you a bit better as it's difficult to say without knowing how you've set up your membership structure.
Answers.UserDisplayName: Lesley Carter - BackOffice
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-12T19:21:54.563Z
Answers.LastActivityDate: 2018-11-12T19:21:54.563Z
Answers.UserDisplayName: Lesley Carter - BackOffice
Body: <p>I am trying to work with an existing CiviCRM setup I have stepped into.</p>
  
  <p>The automatic email of a donation or membership payment needs more features added. </p>
  
  <p>1) The Company number 
  2) the type of product being purchased (as in Silver membership, Gold, Student or Retired), 
  3) the official registration of the body they have donated to or paid membership to, and 
  4) the type of donation that may be given, as in for campaign A or for campaign B. </p>
  
  <p>My organization is using CiviMail, CiviContributes and CiviMember.  We do not use CiviEvent even though it is installed.</p>
  
  <p>I do not know where to find, in this slightly customized version of CiviCRM, 4.1.3, those fields or those tokens. Can someone please help point me in the right direction?</p>
  
  <p>There are about 1300 members/supporters being managed with this system since 2011.  I think there are a lot of legacy aspects that have been tried and left hanging, looking as though they can do thing, but they don't, like CiviEvent.</p>
  
  <p>Thanks in advance for your help.</p>
  
  <p>------------- existing message template ----------------</p>
  
  <p>
  
  
   
   
  
  </p>
  
  <p>{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}</p>
  
  <p>
   </p>
  
  <p>
    
    </p>
  
    
  
  <p>
     
      {if $formValues.receipt_text_signup}
       <p>{$formValues.receipt_text_signup|htmlize}</p>
      {elseif $formValues.receipt_text_renewal}
       <p>{$formValues.receipt_text_renewal|htmlize}</p>
      {else}
       <p>{ts}Thanks for your support.{/ts}</p>
      {/if}
      {if ! $cancelled}
       <p>{ts}Please print this receipt for your records.{/ts}</p>
       <p>{ts}SPECIAL Association for PUBLIC GOOD (Australia){/ts}</p>
       <p>{ts}ABN 15 555 555 555{/ts}</p>
      {/if}
     
    
    
     
      
       {if !$lineItem}
       
        
         {ts}Membership Information{/ts}
        
       
       
        
         {ts}Membership Type{/ts}
        
        
         {$membership_name}
        
       
       {/if}
       {if ! $cancelled}
       {if !$lineItem}
        
         
          {ts}Membership Start Date{/ts}
         
         
          {$mem_start_date}
         
        
        
         
          {ts}Membership End Date{/ts}
         
         
          {$mem_end_date}
         
        
        {/if}
        {if $formValues.total_amount}
         
          
           {ts}Membership Fee{/ts}
          
         
         {if $formValues.contributionType_name}
          
           
            {ts}Contribution Type{/ts}
           
           
            {$formValues.contributionType_name}
           
          
         {/if}</p>
  
  <pre><code>   {if $lineItem}
     {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}Fee{/ts}&lt;/th&gt;
       &lt;th&gt;{ts}Membership Start Date{/ts}&lt;/th&gt;
       &lt;th&gt;{ts}Membership End Date{/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.line_total|crmMoney}
            &lt;/td&gt;
            &lt;td&gt;
             {$line.start_date}
            &lt;/td&gt;
        &lt;td&gt;
             {$line.end_date}
            &lt;/td&gt;
           &lt;/tr&gt;
          {/foreach}
         &lt;/table&gt;
        &lt;/td&gt;
       &lt;/tr&gt;
     {/foreach}
    {/if}
     &lt;tr&gt;
      &lt;td {$labelStyle}&gt;
       {ts}Amount{/ts}
      &lt;/td&gt;
      &lt;td {$valueStyle}&gt;
       {$formValues.total_amount|crmMoney}
      &lt;/td&gt;
     &lt;/tr&gt;
     {if $receive_date}
      &lt;tr&gt;
       &lt;td {$labelStyle}&gt;
        {ts}Received Date{/ts}
       &lt;/td&gt;
       &lt;td {$valueStyle}&gt;
        {$receive_date|truncate:10:''|crmDate}
       &lt;/td&gt;
      &lt;/tr&gt;
     {/if}
     {if $formValues.paidBy}
      &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}
   {/if}
  &lt;/table&gt;
  </code></pre>
  
  <p>
    </p>
  
  <p>{if $isPrimary}
     
      
       </p>
  
  <pre><code>  {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later }
     &lt;tr&gt;
      &lt;th {$headerStyle}&gt;
       {ts}Billing Name and Address{/ts}
      &lt;/th&gt;
     &lt;/tr&gt;
     &lt;tr&gt;
      &lt;td {$labelStyle}&gt;
       {$billingName}&lt;br /&gt;
       {$address}
      &lt;/td&gt;
     &lt;/tr&gt;
    {/if}
  
    {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later}
     &lt;tr&gt;
      &lt;th {$headerStyle}&gt;
       {ts}Credit Card Information{/ts}
      &lt;/th&gt;
     &lt;/tr&gt;
     &lt;tr&gt;
      &lt;td {$valueStyle}&gt;
       {$credit_card_type}&lt;br /&gt;
       {$credit_card_number}
      &lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;
      &lt;td {$labelStyle}&gt;
       {ts}Expires{/ts}
      &lt;/td&gt;
      &lt;td {$valueStyle}&gt;
       {$credit_card_exp_date|truncate:7:''|crmDate}
      &lt;/td&gt;
     &lt;/tr&gt;
    {/if}
  
   &lt;/table&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>
    {/if}</p>
  
  <p>{if $customValues}
     
      
       
        
         
          {ts}Membership Options{/ts}
         
        
        {foreach from=$customValues item=value key=customName}
         
          
           {$customName}
          
          
           {$value}
          
         
        {/foreach}
       
      
     
    {/if}</p>
  
  <p>
  </p>
  
  <p>
  </p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-12T19:17:24.287Z
Comments.Text: Hi Thomas - welcome - if you are asking where to find the templates, go to Admin. > Communications > Message Templates then System Templates Message (tab) or /civicrm/admin/messageTemplates?reset=1
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-12T22:41:29.373Z
Comments.Text: If you have the funds it may save a lot of headache to get an expert to show you around the system that has been left in your care. If that is not an option then we currently have capacity to provide some free mentoring for you if you want to get in touch via our site - fuzion.co.nz
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-13T10:39:12.277Z
Comments.Text: If you are on 4.1.3, make it a priority to get upgraded.  There are numerous bug fixes, security fixes and enhancements since 4.1.3 - but you will want to understand your local customisations first so you can assess whether those are still needed and how they can be updated.
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-19T06:17:54.717Z
Comments.Text: Thanks +peternz and +Aidan - I am asking for support/advice to do both options from management.  My feeling is that this CiviCRM is broken and we cannot get what we need - which is to have CiviContribution issue a receipt using information from CiviMembership.
Comments.UserDisplayName: Thomas S
Tags: <civimember><tokens>
Title: Email of membership receipt needs specific custom tokens added - how to find them?
ThreadText: # Email of membership receipt needs specific custom tokens added - how to find them?
  
  (Asked by: username_0 on 2018-11-12)
  
  I am trying to work with an existing CiviCRM setup I have stepped into.
  The automatic email of a donation or membership payment needs more features added. 
  1) The Company number 
  2) the type of product being purchased (as in Silver membership, Gold, Student or Retired), 
  3) the official registration of the body they have donated to or paid membership to, and 
  4) the type of donation that may be given, as in for campaign A or for campaign B. 
  My organization is using CiviMail, CiviContributes and CiviMember.  We do not use CiviEvent even though it is installed.
  I do not know where to find, in this slightly customized version of CiviCRM, 4.1.3, those fields or those tokens. Can someone please help point me in the right direction?
  There are about 1300 members/supporters being managed with this system since 2011.  I think there are a lot of legacy aspects that have been tried and left hanging, looking as though they can do thing, but they don't, like CiviEvent.
  Thanks in advance for your help.
  ------------- existing message template ----------------
  
  
  {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_signup}
       {$formValues.receipt_text_signup|htmlize}
      {elseif $formValues.receipt_text_renewal}
       {$formValues.receipt_text_renewal|htmlize}
      {else}
       {ts}Thanks for your support.{/ts}
      {/if}
      {if ! $cancelled}
       {ts}Please print this receipt for your records.{/ts}
  {ts}SPECIAL Association for PUBLIC GOOD (Australia){/ts}
  {ts}ABN 15 555 555 555{/ts}
      {/if}
     
    
    
     
      
       {if !$lineItem}
       
        
         {ts}Membership Information{/ts}
        
       
       
        
         {ts}Membership Type{/ts}
        
        
         {$membership_name}
        
       
       {/if}
       {if ! $cancelled}
       {if !$lineItem}
        
         
          {ts}Membership Start Date{/ts}
         
         
          {$mem_start_date}
         
        
        
         
          {ts}Membership End Date{/ts}
         
         
          {$mem_end_date}
         
        
        {/if}
        {if $formValues.total_amount}
         
          
           {ts}Membership Fee{/ts}
          
         
         {if $formValues.contributionType_name}
          
           
            {ts}Contribution Type{/ts}
           
           
            {$formValues.contributionType_name}
           
          
         {/if}
     {if $lineItem}
     {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}Fee{/ts}
       {ts}Membership Start Date{/ts}
       {ts}Membership End Date{/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.line_total|crmMoney}
            
            
             {$line.start_date}
            
        
             {$line.end_date}
            
           
          {/foreach}
         
        
       
     {/foreach}
    {/if}
     
      
       {ts}Amount{/ts}
      
      
       {$formValues.total_amount|crmMoney}
      
     
     {if $receive_date}
      
       
        {ts}Received Date{/ts}
       
       
        {$receive_date|truncate:10:''|crmDate}
       
      
     {/if}
     {if $formValues.paidBy}
      
       
        {ts}Paid By{/ts}
       
       
        {$formValues.paidBy}
       
      
      {if $formValues.check_number}
       
        
         {ts}Check Number{/ts}
        
        
         {$formValues.check_number}
        
       
      {/if}
     {/if}
    {/if}
   {/if}
  
  
  
  
  {if $isPrimary}
     
      
       
    {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later }
     
      
       {ts}Billing Name and Address{/ts}
      
     
     
      
       {$billingName}
       {$address}
      
     
    {/if}
  
    {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later}
     
      
       {ts}Credit Card Information{/ts}
      
     
     
      
       {$credit_card_type}
       {$credit_card_number}
      
     
     
      
       {ts}Expires{/ts}
      
      
       {$credit_card_exp_date|truncate:7:''|crmDate}
      
     
    {/if}
  
   
  
  
  
    {/if}
  {if $customValues}
     
      
       
        
         
          {ts}Membership Options{/ts}
         
        
        {foreach from=$customValues item=value key=customName}
         
          
           {$customName}
          
          
           {$value}
          
         
        {/foreach}
       
      
     
    {/if}
  
  **Tags:** civimember, tokens
  
  > **Comments:**
  > **username_1**: Hi Thomas - welcome - if you are asking where to find the templates, go to Admin. > Communications > Message Templates then System Templates Message (tab) or /civicrm/admin/messageTemplates?reset=1  
  > **username_1**: If you have the funds it may save a lot of headache to get an expert to show you around the system that has been left in your care. If that is not an option then we currently have capacity to provide some free mentoring for you if you want to get in touch via our site - fuzion.co.nz  
  > **username_2**: If you are on 4.1.3, make it a priority to get upgraded.  There are numerous bug fixes, security fixes and enhancements since 4.1.3 - but you will want to understand your local customisations first so you can assess whether those are still needed and how they can be updated.  
  > **username_0**: Thanks +peternz and +username_2 - I am asking for support/advice to do both options from management.  My feeling is that this CiviCRM is broken and we cannot get what we need - which is to have CiviContribution issue a receipt using information from CiviMembership.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2018-11-12. Score: 1
  
  Hi and welcome to the CiviCRM SE page!
  
  With respect to the membership type/product, those should be delineated in any membership receipt template without any additional customization needed. And since you're working with Civi 4.1.3, if these are memberships on behalf of an organization, the receipt should include the company name. (This behavior doesn't work correctly in 5.x, unfortunately.) If the company number is a custom field, you should be able to pull it in based on its ID number, located at the end of its editing link. For example, ../civicrm/admin/custom/group/field/update?action=update&reset=1&gid=5&id=11 would be referenced as {contact.custom\_11} as a token.
  
  In the contribution template, the type of donation should already be included - is it not coming through, in your testing?
  
  With respect to the official registration details, how are those currently stored in Civi?
  
  > **Comments:**
  > **username_0**: Hi @username_3  the full details of the membership type/product does not come through with the membership receipt. Its says "membership dues" and it needs to have a second field showing the type of dues - Gold / Silver / Bronze / plus Student.   I need to find out how to find a field code for the type of membership due being made.  The editing link - that information is very helpful. Is this an editing link?   https://contacts.mynonprofitgenericwebsite.org.au/civicrm/member/add?reset=1&action=add&context=standalone  
  > **username_3**: Can you add a screenshot of how the membership looks in Civi (not in the receipt)?  That would help us help you a bit better as it's difficult to say without knowing how you've set up your membership structure.  
  
  ---
  
  