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 CiviEvent (Moderator: Yashodha Chaku) »
  • Changing "Edit Events - Registration Confirmation and Receipt (off-line)"
Pages: [1]

Author Topic: Changing "Edit Events - Registration Confirmation and Receipt (off-line)"  (Read 417 times)

CatorgHans

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.4
  • CMS version: drupal
Changing "Edit Events - Registration Confirmation and Receipt (off-line)"
November 18, 2013, 08:05:57 am
I want to send a slightly different Message depending on the new participant status when changing the participation in the backend.

Is there a way to find the participation status in Message Template: "Edit Events - Registration Confirmation and Receipt (off-line)" ?

I am trying to get the participation status in this Message Template. I tried quite a lot, among others:
{$event.participant_status_id}{$event.participant_status}{$participant_status}{$event.status_id}{$event.status}{$event.participant_id}

How can I get the participation status or at least the participation id from within this template? (If I have that I can get the status with the API if I'm right, because the participation would have been stored in the DB before this message is send)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Changing "Edit Events - Registration Confirmation and Receipt (off-line)"
November 18, 2013, 10:05:09 am
I should guess at $participant.status_id :-)

Figuring out available tokens is pretty hard to do without using debug :-(
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

CatorgHans

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.4
  • CMS version: drupal
Re: Changing "Edit Events - Registration Confirmation and Receipt (off-line)"
November 19, 2013, 12:41:27 am
Yeah, is there any way to show smarty debug info on Mail Templates?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Changing "Edit Events - Registration Confirmation and Receipt (off-line)"
November 19, 2013, 12:43:12 am
If the template is passed through smarty you can use things like {$participant|print_r} - google smarty print_r
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

CatorgHans

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.4
  • CMS version: drupal
Re: Changing "Edit Events - Registration Confirmation and Receipt (off-line)"
November 19, 2013, 01:34:50 am
it is {$participantID}, argh...

This is what I did.
Add {debug} to the Mail Template.
I did that before but was confused it did not show anything, but...
It adds javascript to the Resulting email trying to create the debug popup, which does not work in the email.

So you have to View Source then, and try to figure out the HTML in there.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Changing "Edit Events - Registration Confirmation and Receipt (off-line)"

This forum was archived on 2017-11-26.