Answers.Body: <p>You should be able to find the current template files in the repository (<a href="https://github.com/civicrm/civicrm-core" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core</a>).  It's not clear whether you're on 5.x or in fact still on 4.7 but previous versions should be available as well for you to pull from.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-02T19:41:12.023Z
Answers.Text: Thanks. I have no idea what to look for though - are they defined as files in a sort of tpl format .. can i search by extension ?
Answers.UserDisplayName: commonpike
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-07T15:32:17.093Z
Answers.Text: If you go here https://github.com/civicrm/civicrm-core/find/master and type receipt, the file finder should help you pull up the relevant files.
Answers.UserDisplayName: Lesley Carter - BackOffice
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-31T19:10:14.190Z
Answers.LastActivityDate: 2018-10-31T19:10:14.190Z
Answers.UserDisplayName: Lesley Carter - BackOffice
Body: <p>We've upgraded civicrm multiple times the last few years. At a certain point, the receipt templates broke. It stopped showing credit card information and membership start/end date (for membership receipts) became blank.</p>
  
  <p>I've just reverted 'back' to the default templates, assuming that default is the same as the most recent version of civicrm (so, not the 4.5 default we started with, but the 4.7 default we are at right now). But these fields are still broken.</p>
  
  <p>So perhaps these are not the most recent templates. Are there more recent templates I can download somewhere ?</p>
  
  <p>Particularly, I see</p>
  
  <pre><code>&lt;td {$valueStyle}&gt;
  {$mem_start_date}
  &lt;/td&gt;
  </code></pre>
  
  <p>Shouldn't that be </p>
  
  <pre><code>&lt;td {$valueStyle}&gt;
  {$mem_start_date|crmDate}
  &lt;/td&gt;
  </code></pre>
  
  <p>Or even</p>
  
  <pre><code>&lt;td {$valueStyle}&gt;
  {$mem_start_date|truncate:10:''|crmDate}
  &lt;/td&gt;
  </code></pre>
  
  <p>and </p>
  
  <pre><code> {$credit_card_type}&lt;br /&gt;
   {$credit_card_number}
  </code></pre>
  
  <p>prints nothing but blanks, as does </p>
  
  <pre><code> {$credit_card_exp_date|truncate:7:''|crmDate}
  </code></pre>
  
Tags: <civimember><4.7><message-templates><receipts>
Title: Receipt template formatting (still) broken?
ThreadText: # Receipt template formatting (still) broken?
  
  (Asked by: username_0 on 2018-10-31)
  
  We've upgraded civicrm multiple times the last few years. At a certain point, the receipt templates broke. It stopped showing credit card information and membership start/end date (for membership receipts) became blank.
  
  I've just reverted 'back' to the default templates, assuming that default is the same as the most recent version of civicrm (so, not the 4.5 default we started with, but the 4.7 default we are at right now). But these fields are still broken.
  
  So perhaps these are not the most recent templates. Are there more recent templates I can download somewhere ?
  
  Particularly, I see
  
  ```
  <td {$valueStyle}>
  {$mem_start_date}
  </td>
  
  ```
  
  Shouldn't that be
  
  ```
  <td {$valueStyle}>
  {$mem_start_date|crmDate}
  </td>
  
  ```
  
  Or even
  
  ```
  <td {$valueStyle}>
  {$mem_start_date|truncate:10:''|crmDate}
  </td>
  
  ```
  
  and
  
  ```
   {$credit_card_type}<br />
   {$credit_card_number}
  
  ```
  
  prints nothing but blanks, as does
  
  ```
   {$credit_card_exp_date|truncate:7:''|crmDate}
  
  ```
  
  **Tags:** civimember, 4.7, message-templates, receipts
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-10-31. Score: 1
  
  You should be able to find the current template files in the repository (<https://github.com/civicrm/civicrm-core>). It's not clear whether you're on 5.x or in fact still on 4.7 but previous versions should be available as well for you to pull from.
  
  > **Comments:**
  > **username_0**: Thanks. I have no idea what to look for though - are they defined as files in a sort of tpl format .. can i search by extension ?  
  > **username_1**: If you go here https://github.com/civicrm/civicrm-core/find/master and type receipt, the file finder should help you pull up the relevant files.  
  
  ---
  
  