Answers.Body: <p>This by default is not available in CiviCRM ATM. You can alter the message template under System workflow message for 'Events - Registration Confirmation and Receipt (off-line)' to include additional details. If you are good in smarty variables than you can use api to fetch details like additional participant or payments and include it in your message template, or you can create extension to 
   implement <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_tokens/" rel="nofollow noreferrer">tokens</a> and <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_tokenValues/" rel="nofollow noreferrer">tokenvalue</a> hook to add tokens and process the value when rendering message template before it is send to user.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-24T11:38:40.183Z
Answers.Text: Thanks for you suggestions.  the hooks or smarty variables won't change what is shown against a participant's registration, will they?  My knowledge of smarty is very, very limited.  The question still stands as to whether it would be useful for other people.
Answers.UserDisplayName: Stephen Palmstrom
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-28T09:35:09.380Z
Answers.Text: I looked at hooks, but they seemed not to kick in at the right time and had problems returning information to the caller.  Instead, I tweaked .../CRM/Event/Form\EventFees.php, Participant.php and ParticipantView.php and the relevant mail template to display the necessary information.
Answers.UserDisplayName: Stephen Palmstrom
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-17T20:22:15.350Z
Answers.LastActivityDate: 2020-02-17T20:22:15.350Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I'm not sure if this should be here, in <em>Mattermost</em> or in <em>Issue Reporting</em>.  It refers to CiviCRM 5.22.0.
  We allow on-line registration of multiple participants for an event, and allow a deposit to be paid. The initial registration is <em>Pending (Pay Later)</em> as we do not wish to get involved with payment processors and the associated security implications. Instead, we monitor our bank account for such payments. The email sent in response to the receipt of the registration sent to the primary participant contains the information about all the participants. However, the email sent in response to the administrator recording the payment (and changing the status to <em>Partially Paid</em> only shows the registration of the primary participant and it also shows the total amount paid and the outstanding balance. Editing and sending another receipt just shows the information about the primary recipient and no balance information.</p>
  
  <p>Would it be better if all such receipts showed:</p>
  
  <ul>
  <li>The information about <em>all</em> the recipients</li>
  <li>The amount paid so far and the outstanding balance.</li>
  </ul>
  
  <p>?</p>
  
  <p>I have been investigating how this might be accomplished and discovered, among other things, that there seem to be several ways in which the total amount payable is calculated, depending on which part of <em>CiviEvent</em> is doing the calculation.</p>
  
  <p>Has anyone any thoughts on this?</p>
  
Tags: <civievent>
Title: Handling registration of multiple participants for an event?
ThreadText: # Handling registration of multiple participants for an event?
  
  (Asked by: username_0 on 2020-02-17)
  
  I'm not sure if this should be here, in *Mattermost* or in *Issue Reporting*. It refers to CiviCRM 5.22.0.
  We allow on-line registration of multiple participants for an event, and allow a deposit to be paid. The initial registration is *Pending (Pay Later)* as we do not wish to get involved with payment processors and the associated security implications. Instead, we monitor our bank account for such payments. The email sent in response to the receipt of the registration sent to the primary participant contains the information about all the participants. However, the email sent in response to the administrator recording the payment (and changing the status to *Partially Paid* only shows the registration of the primary participant and it also shows the total amount paid and the outstanding balance. Editing and sending another receipt just shows the information about the primary recipient and no balance information.
  
  Would it be better if all such receipts showed:
  
  * The information about *all* the recipients
  * The amount paid so far and the outstanding balance.
  
  ?
  
  I have been investigating how this might be accomplished and discovered, among other things, that there seem to be several ways in which the total amount payable is calculated, depending on which part of *CiviEvent* is doing the calculation.
  
  Has anyone any thoughts on this?
  
  **Tags:** civievent
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-02-17. Score: 1
  
  This by default is not available in CiviCRM ATM. You can alter the message template under System workflow message for 'Events - Registration Confirmation and Receipt (off-line)' to include additional details. If you are good in smarty variables than you can use api to fetch details like additional participant or payments and include it in your message template, or you can create extension to
  implement [tokens](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_tokens/) and [tokenvalue](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_tokenValues/) hook to add tokens and process the value when rendering message template before it is send to user.
  
  > **Comments:**
  > **username_0**: Thanks for you suggestions.  the hooks or smarty variables won't change what is shown against a participant's registration, will they?  My knowledge of smarty is very, very limited.  The question still stands as to whether it would be useful for other people.  
  > **username_0**: I looked at hooks, but they seemed not to kick in at the right time and had problems returning information to the caller.  Instead, I tweaked .../CRM/Event/Form\EventFees.php, Participant.php and ParticipantView.php and the relevant mail template to display the necessary information.  
  
  ---
  
  