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) »
  • Confirmation number?
Pages: 1 2 [3]

Author Topic: Confirmation number?  (Read 6745 times)

Rahul Bile

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 16
  • impossible says, I M Possible
    • I AM POSSIBLE
Re: Confirmation number?
September 05, 2010, 10:20:58 pm
You can check the below post. Its surely what you need :)

http://forum.civicrm.org/index.php/topic,14713.msg62737.html#msg62737


Rahul.
« Last Edit: September 05, 2010, 10:39:55 pm by rahulbile »
Consider donating to CiviCRM if you use it. http://civicrm.org/donate

kh28102000

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
Re: Confirmation number?
September 06, 2010, 12:41:35 am
Lobo,
  I verified the "$this->assign( 'registerByID', $participant->id );" statement, it is already on line 544 of Registration.php file (version 3.2.2). However, I couldn't retrieve {$registerByID} by adding it to the two templates.

Rahul,
  Your solution did solved one of my problem. I.e. Adding the statement "$sendTemplateParams['tplParams']['participantID']  = $participantId;" to line 1081 of Event.php and add {$participantID} to the two templates. The participant.id is populated in the confirmation e-mail.

I also like to add participant.id to the "Thank-you for your registration screen" after user click on submit button. I tried to add {$participantID} to the Introduction text area, it didn't work. Do you have any idea how to do it?

Thanks very much.

Rahul Bile

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 16
  • impossible says, I M Possible
    • I AM POSSIBLE
Re: Confirmation number?
September 06, 2010, 01:47:55 am
Hey,

Dont know why the partricipant Id is not available on thankyou page but you can try below patch, to get the same
Code: [Select]
Index: CRM/Event/Form/Registration/Confirm.php
===================================================================
--- CRM/Event/Form/Registration/Confirm.php (revision 29557)
+++ CRM/Event/Form/Registration/Confirm.php (working copy)
@@ -787,7 +787,7 @@
             }
                 
         }   
+        $this->set( 'participantNumber', $participantID );
     } //end of function
     
     /**
Index: CRM/Event/Form/Registration/ThankYou.php
===================================================================
--- CRM/Event/Form/Registration/ThankYou.php (revision 29557)
+++ CRM/Event/Form/Registration/ThankYou.php (working copy)
@@ -65,6 +65,8 @@
         $customGroup = $this->get('customProfile');
         $this->assign( 'customProfile',$customGroup );
         CRM_Utils_System::setTitle(CRM_Utils_Array::value('thankyou_title',$this->_values['event']));
+        $participantNumber = $this->get( 'participantNumber' );
+        $this->assign( 'participantNumber', $participantNumber );
     }
 
and then can use the variable {$participantNumber} in templates/CRM/Event/Form/Registration/ThankYou.tpl .:)

Rahul
Consider donating to CiviCRM if you use it. http://civicrm.org/donate

kh28102000

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
Re: Confirmation number?
September 06, 2010, 01:59:27 pm
Rahul,
  I did what suggested, midifying Confirm.php (line 787), ThankYou.php(line 68,69), & ThankYou.tpl (line 72). However, it still didn't show on the Thank-you screen. Any other thought?

Here is the code in ThankYou.tpl.
Code: [Select]
<p>{ts 1=$participantNumber}Your registration has been processed successfully. Your confirmation number is: TX07-%1. Please print this page for your records.{/ts}</p>
{if $is_email_confirm}
    <p>{ts 1=$email}A registration confirmation email has also been sent to %1{/ts}</p>
{/if}

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Confirmation number?
September 06, 2010, 06:09:39 pm

at this point, you might want to consider hiring someone from http://civicrm.org/professional/ to check your install and help you out

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: 1 2 [3]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Confirmation number?

This forum was archived on 2017-11-26.