-
-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow template for offline event
This locks in availability of participant and event tokens along with the standard smarty variables of {contactID}, {participantID} and {eventID}
- Loading branch information
1 parent
194fcfc
commit c16c5e0
Showing
8 changed files
with
78 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
/* | ||
+--------------------------------------------------------------------+ | ||
| Copyright CiviCRM LLC. All rights reserved. | | ||
| | | ||
| This work is published under the GNU AGPLv3 license with some | | ||
| permitted exceptions and without any warranty. For full license | | ||
| and copyright information, see https://civicrm.org/licensing | | ||
+--------------------------------------------------------------------+ | ||
*/ | ||
|
||
use Civi\WorkflowMessage\GenericWorkflowMessage; | ||
|
||
/** | ||
* Receipt sent when confirming a back office participation record. | ||
* | ||
* @support template-only | ||
* | ||
* @see CRM_Event_Form_Participant::submit() | ||
* @see CRM_Event_Form_ParticipantFeeSelection::emailReceipt | ||
*/ | ||
class CRM_Event_WorkflowMessage_EventOfflineReceipt extends GenericWorkflowMessage { | ||
use CRM_Event_WorkflowMessage_ParticipantTrait; | ||
public const WORKFLOW = 'event_offline_receipt'; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/templates/message_templates/event_offline_receipt_text.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
contactID:::{$contactID} | ||
eventID:::{$eventID} | ||
participantID:::{$participantID} | ||
contact.id:::{contact.id} | ||
event.id:::{event.id} | ||
participant.id:::{participant.id} | ||
event.title:::{event.title} | ||
participant.status_id:name:::{participant.status_id:name} | ||
email:::{$email} | ||
event.pay_later_receipt:::{event.pay_later_receipt} |