Answers.Body: <p>I found a solution, not perfect, but it works for me: I use the $mem_status token and check if it is New. In this case I assume that it is a signup else it is a renew</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-17T11:01:54.827Z
Answers.LastActivityDate: 2020-12-17T11:01:54.827Z
Answers.UserDisplayName: pk825
Body: <p>I would customize the template <em>Memberships - Receipt (on-line)</em> in order to give a different message if it is a signup or a renewal.
  I try a lot of tokens, but no ones works:
  $receiptType
  $membership_status
  $membership_source
  $source
  $status
  $membershipStatus
  $form.receipt_text
  $formValues.receipt_text_signup
  $formValues.receipt_text_renewal
  $formValues.receipt_text
  $formValues.receipt_text.label
  $receipt_text
  $receipt_text.label</p>
  <p>In the offline template I use $receiptType EQ 'membership signup'.</p>
  <p>Have you any suggestions?</p>
  
Tags: <civimember><tokens><renewals>
Title: Memberships - Receipt (on-line) template: how to check if it is a subscription or a renew
ThreadText: # Memberships - Receipt (on-line) template: how to check if it is a subscription or a renew
  
  (Asked by: username_0 on 2020-12-15)
  
  I would customize the template *Memberships - Receipt (on-line)* in order to give a different message if it is a signup or a renewal.
  I try a lot of tokens, but no ones works:
  $receiptType
  $membership\_status
  $membership\_source
  $source
  $status
  $membershipStatus
  $form.receipt\_text
  $formValues.receipt\_text\_signup
  $formValues.receipt\_text\_renewal
  $formValues.receipt\_text
  $formValues.receipt\_text.label
  $receipt\_text
  $receipt\_text.label
  
  In the offline template I use $receiptType EQ 'membership signup'.
  
  Have you any suggestions?
  
  **Tags:** civimember, tokens, renewals
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2020-12-17. Score: 3
  
  I found a solution, not perfect, but it works for me: I use the $mem\_status token and check if it is New. In this case I assume that it is a signup else it is a renew
  
  
  ---
  
  