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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • $is_pay_later In Email Template
Pages: [1]

Author Topic: $is_pay_later In Email Template  (Read 303 times)

Jeroen

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
    • Personal website
  • CiviCRM version: 4.4.11
  • CMS version: Drupal
  • MySQL version: 5.1
  • PHP version: 5.3
$is_pay_later In Email Template
February 24, 2015, 04:34:02 am
This is a cleaned up transcript of something I said in the #civicrm channel. Maybe it gets a reply here..

When creating an event you can check a box "Enable Pay Later option?"
Then it seems an $is_pay_later variable gets added to the System Worklfow Messages's email templates.
Now... when registering for the event the $is_pay_later variable is there and can be used.
When, the person's payment has come in and you want to update his contribution to that event you can "Record contribution" when editing the participant to that event.
You can also check the box to send an email underneat.
Somehow... when the off-line confirmation template is being processed... the $is_pay_later variable is _not_ there.
Even though you're registering the event fee contribution for the participant to an event that can be paid for later.
OK, so, off-line registration confirmation template... no $is_pay_later.
Then, when going back to the participant's registration... the record payment checkbox isn't there anymore because we've done that already...
But if you then just check the "Send Confirmation and Receipt" checkbox, _just_ like you did when recording the participant's event-fee contribution...
... the off-line Registration Confirmation and Receipt template is being processed again and the $is_pay_later variable _is_ present.
The question then is: Why is $is_pay_later not present when recording a contribution and sending the mail. And why is it present when just sending the mail.
« Last Edit: February 24, 2015, 04:59:31 am by Jeroen »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • $is_pay_later In Email Template

This forum was archived on 2017-11-26.