CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Membership receipt not printing start and end date
Pages: [1]

Author Topic: Membership receipt not printing start and end date  (Read 1981 times)

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Membership receipt not printing start and end date
December 16, 2011, 12:48:04 pm
Hello, in my Memberships - Receipt (on-line) template, I need for the receipt to contain the membership start and end dates.  I have the code below in the template, but start and end are not printed in the email or pdf.  I should note, this is when using "pay by check" (pay later).  Perhaps start and end is not recorded when using pay later?  If not, what can i do to fix this?

Please advise, thanks!  Using 3.3

Code: [Select]
{if $mem_start_date}
       <tr>
        <td {$labelStyle}>
         {ts}Membership Start Date{/ts}
        </td>
        <td {$valueStyle}>
         {$mem_start_date|crmDate}
        </td>
       </tr>
      {/if}
      {if $mem_end_date}
       <tr>
        <td {$labelStyle}>
         {ts}Membership End Date{/ts}
        </td>
        <td {$valueStyle}>
          {$mem_end_date|crmDate}


Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Membership receipt not printing start and end date
December 16, 2011, 02:19:26 pm
The start and end dates are NOT set for pay later membership signups. Membership is added in Pending status and start / end dates are populated once the payment is recorded as being received.
Protect your investment in CiviCRM by  becoming a Member!

BusinessMediaCenter

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Re: Membership receipt not printing start and end date
December 16, 2011, 02:55:47 pm
Thanks Dave, thats what i was thinking but this does make sense why it would happen, eg if they never pay then they should of course not have a start and end date.  Is there a mail token or logic that i could use in the template to indicate pending status?

something like:

{if $mem_status_pending}


Thanks!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Membership receipt not printing start and end date
December 16, 2011, 05:58:20 pm
Not sure if membership status is exposed to the template. However, I think you could use the existing conditional to show pending status (if start_date isn't set - I think that's the only reason why it would not be). Something like this:

{if $mem_start_date}
...
{else}
Your membership is pending receipt of payment
{/if}
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Membership receipt not printing start and end date

This forum was archived on 2017-11-26.