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) »
  • Multiple registration email confirmation help
Pages: [1]

Author Topic: Multiple registration email confirmation help  (Read 828 times)

breity

  • Guest
Multiple registration email confirmation help
November 07, 2010, 08:50:46 pm
Quick question - I'm trying to customize the email confirmation messages sent when someone registers multiple participants for an event.  Currently, a list of each registration purchase is output along with the price, the price label, and the email of the person being registered (if no email was provided, the name of the registrant is printed next to the fee amount and label).  I would like to change this so that the registrants' names are always printed here, not the email addresses.  The problem is that I can't figure out where the email is coming from at all because it is not in the message template for online registration confirmation: http://tickets.johnandlizproductions.com/civicrm/admin/messageTemplates/add?action=update&id=21&reset=1.

Code: [Select]
{foreach from=$amount item=amnt key=level}
  <tr>
    <td colspan="2" {$valueStyle}>
      {$amnt.amount|crmMoney} {$amnt.label}
    </td>
  </tr>
{/foreach}

As you can see, the fee amount and label for each purchase are printed in the confirmation email.  Somehow though, the email address for the corresponding registrant is also printed here on each line.  Does anyone know where this is coming from?  Or how I could change it to always print out the names of registrants.  Basically, I would like the confirmation email sent to the person who bought the tickets to show the names of all the other people he/she bought tickets for.  Right now, only the email addresses and the purchaser's name are shown.

Thanks for any insights!

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Multiple registration email confirmation help
November 08, 2010, 02:13:13 am
breity :
Quote
Or how I could change it to always print out the names of registrants.

You might wanna check the code around line no 238  in CRM/Event/Form/Registration/Confirm.php
where the label is assigned to be email address ( if present ) and if not so first name last name.

You might want to change the logic that sets $append variable to get the desired result.

Hope that helps!
Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

breity

  • Guest
Re: Multiple registration email confirmation help
November 08, 2010, 12:04:27 pm
Quote from: Yashodha Chaku on November 08, 2010, 02:13:13 am

You might wanna check the code around line no 238  in CRM/Event/Form/Registration/Confirm.php
where the label is assigned to be email address ( if present ) and if not so first name last name.

You might want to change the logic that sets $append variable to get the desired result.

Hope that helps!
Yashodha


Thanks so much, that looks like the right place.  Unfortunately, it doesn't seem to work for me.  I changed the logic to set $append to be first and last name always, removing the conditional clause that looks for email by default.  For some reason, it doesn't seem to have any effect on confirmation email text.

I tried this by overriding the php using my custom php directory and also even editing CRM/Event/Form/Registration/Confirm.php directly.  The confirmation emails messages still show the email addresses registered and not the names.  Strange.  Any other ideas?  Thanks so much again.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Multiple registration email confirmation help

This forum was archived on 2017-11-26.