Body: <p>In the membership renewal (online) receipt template, it says, here, </p>
  
  <p><a href="https://github.com/civicrm/civicrm-core/blob/master/xml/templates/message_templates/membership_online_receipt_text.tpl#L68" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/blob/master/xml/templates/message_templates/membership_online_receipt_text.tpl#L68</a></p>
  
  <pre><code>{foreach from=$value item=line}
     [....]
     {$line.start_date|string_format:"%20s"} 
     {$line.end_date|string_format:"%20s"}
  {/foreach}
  </code></pre>
  
  <p>That just prints blanks in all my renewals:</p>
  
  <pre><code>===========================================================
  Membership Fee
  ===========================================================
  Item                                  Fee  Membership Start Date  Membership End Date
  --------------------------------------------------------------------------------------------------
  
   - Test X Membership...        $220.00 USD                                            
  
  --------------------------------------------------------------------------------------------------
  </code></pre>
  
  <p>Same for the HTML and PDF versions.</p>
  
  <p>Membership <em>signup</em> receipts work fine, but they use</p>
  
  <p><a href="https://github.com/civicrm/civicrm-core/blob/master/xml/templates/message_templates/membership_online_receipt_text.tpl#L18" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/blob/master/xml/templates/message_templates/membership_online_receipt_text.tpl#L18</a></p>
  
  <pre><code>{if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}
  </code></pre>
  
  <p>Does anyone else have this problem ? What could it be ?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-04-22T16:09:56.070Z
Comments.Text: Two things to check:
  Have you checked if your template is overridden?
  (See https://docs.civicrm.org/user/en/latest/email/message-templates/#modifying-system-workflow-message-templates)
  Have you tried to replicate this on a demo or fresh install?
Comments.UserDisplayName: lolcode
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-04-26T19:55:01.400Z
Comments.Text: @lolcode - thanks - yes, they are overridden, but use the same code on those spots. I didn't yet try to replicate it on a fresh install.
Comments.UserDisplayName: commonpike
Tags: <civimember><templates><renewals><5.15.2>
Title: Membership renewal receipt template not showing membership start- and end dates
ThreadText: # Membership renewal receipt template not showing membership start- and end dates
  
  (Asked by: username_0 on 2020-04-22)
  
  In the membership renewal (online) receipt template, it says, here,
  
  <https://github.com/civicrm/civicrm-core/blob/master/xml/templates/message_templates/membership_online_receipt_text.tpl#L68>
  
  ```
  {foreach from=$value item=line}
     [....]
     {$line.start_date|string_format:"%20s"} 
     {$line.end_date|string_format:"%20s"}
  {/foreach}
  
  ```
  
  That just prints blanks in all my renewals:
  
  ```
  ===========================================================
  Membership Fee
  ===========================================================
  Item                                  Fee  Membership Start Date  Membership End Date
  --------------------------------------------------------------------------------------------------
  
   - Test X Membership...        $220.00 USD                                            
  
  --------------------------------------------------------------------------------------------------
  
  ```
  
  Same for the HTML and PDF versions.
  
  Membership *signup* receipts work fine, but they use
  
  <https://github.com/civicrm/civicrm-core/blob/master/xml/templates/message_templates/membership_online_receipt_text.tpl#L18>
  
  ```
  {if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}
  
  ```
  
  Does anyone else have this problem ? What could it be ?
  
  **Tags:** civimember, templates, renewals, 5.15.2
  
  > **Comments:**
  > **username_1**: Two things to check: Have you checked if your template is overridden? (See https://docs.civicrm.org/user/en/latest/email/message-templates/#modifying-system-workflow-message-templates) Have you tried to replicate this on a demo or fresh install?  
  > **username_0**: @username_1 - thanks - yes, they are overridden, but use the same code on those spots. I didn't yet try to replicate it on a fresh install.  
  
  ---
  
  ## 0 answers
  
  