Skip to content

Instantly share code, notes, and snippets.

View JKingsnorth's full-sized avatar

John Kingsnorth JKingsnorth

View GitHub Profile
@JKingsnorth
JKingsnorth / gist:4d233df13a0f6493c44f69d81fa5f27a
Created July 2, 2018 11:35
Fix no additional participant information in paid event confirmation emails
/**
* Implements hook_civicrm_alterMailParams().
*/
function cudar_civicrm_alterMailParams(&$params, $context) {
/*
* Redirection from payment gateway which trigger default event confirmation email is missing additional participants information and participants profiles. This is fix.
*/
if (isset($params['groupName']) && $params['groupName'] == 'msg_tpl_workflow_event' && $params['valueName'] == 'event_online_receipt' && empty($params['tplParams']['part'] && !empty($params['tplParams']['lineItem']))) {