forked from civicrm/civicrm-core
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update online_event_template to use workflow message
This updates the default online event template to use the variables assigned by the workflow template This works to standardise the variables previously in dataArray , lineItem, totalAmount, taxAmount to reflect the approach in other templates per https://docs.civicrm.org/user/en/latest/email/message-templates/#variables-and-tokens-in-workflow-message-templates However, for participants, per the helpful discussion at civicrm#24576 the expectation is that the primaryParticipant gets the values for all participants whereas the others only get line items, tax breakdowns, totals that relate to them. Hence I have assigned an array participants that holds detials for all participants and the template iterates through them showing all or just the one that relates to the assigned participant id depending on whether it is primary. This allows the template to display in the Message preview and should also mean that those values that I have addressed will always reflect the participantID being used. This also addresses some notices and incompatibility with secure smarty. However, there are still values I haven't made sense of, or otherwise left out of the scope of this PR in the template. Also note I updated the taxBreakdown in the contribution trait - I decided it was cloberring the amount as it iterated through the line items - rather than doing a running total.
- Loading branch information
1 parent
9f04857
commit 0b03b91
Showing
8 changed files
with
4,631 additions
and
4,641 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
Oops, something went wrong.