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) »
  • How to change the form of receipts for additional participants
Pages: [1]

Author Topic: How to change the form of receipts for additional participants  (Read 416 times)

pjaaar

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.1.0
  • CMS version: Joomla 1.6.6
  • MySQL version: 3.23
  • PHP version: 5.4
How to change the form of receipts for additional participants
August 27, 2012, 12:09:03 am
Hello, I configured an event in such way that we can save several participants during the online registration.

I changed the template of the message "Events - Registration Confirmation and Receipt (on-line)" so that it looks more like a ticket, like a concert. The problem, additional participants receive the text version I guess but something much less attractive.

How can I do that all participants receive the same type of email message?

I tried several files but I'm a little lost and I had a fear of doing more bad stuff than anything else.

AdditionalParticipant.php, Register.php, MessageTemplates.php, Event.php, etc.

Thank you in advance,

pj.



edit1: in class CRM_Event_Form_Registration_Register,

line #1216

 foreach( $additionalIDs as $participantID => $contactId ) {
                if ( $participantID == $registerByID ) {
                    //set as Primary Participant
                    $this->assign ( 'isPrimary' , 1 );
                   
                    $customProfile = CRM_Event_BAO_Event::buildCustomProfile( $participantID, $this->_values, null, $isTest );
                   
                    if ( count($customProfile) ) {
                        $this->assign( 'customProfile', $customProfile );
                        $this->set   ( 'customProfile', $customProfile );
                    }
                   
                } else {
                    $this->assign ( 'isPrimary' , 0 );
                    $this->assign( 'customProfile', null );
                }
               
                //send Confirmation mail to Primary & additional Participants if exists
                CRM_Event_BAO_Event::sendMail( $contactId, $this->_values, $participantID, $isTest );
            }

Is it a track? I want to send a ticket to all participants, but additional participants do not receive exactly the same mail as the "primary" participant, they receive text mail instead
« Last Edit: August 27, 2012, 12:49:21 am by pjaaar »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • How to change the form of receipts for additional participants

This forum was archived on 2017-11-26.