From 448a7f8c3fe68b47bdadd489f7551a73099840df Mon Sep 17 00:00:00 2001 From: Alice Frumin Date: Mon, 13 Jan 2020 14:26:57 -0500 Subject: [PATCH] Add Contributor Name to Offline Contribution Receipts --- CRM/Upgrade/Incremental/MessageTemplates.php | 8 ++++++++ .../contribution_offline_receipt_html.tpl | 8 ++++++++ .../contribution_offline_receipt_text.tpl | 1 + 3 files changed, 17 insertions(+) diff --git a/CRM/Upgrade/Incremental/MessageTemplates.php b/CRM/Upgrade/Incremental/MessageTemplates.php index 21ecf3ec00..2768fc69b1 100644 --- a/CRM/Upgrade/Incremental/MessageTemplates.php +++ b/CRM/Upgrade/Incremental/MessageTemplates.php @@ -199,6 +199,14 @@ class CRM_Upgrade_Incremental_MessageTemplates { ['name' => 'membership_online_receipt', 'type' => 'html'], ], ], + [ + 'version' => '5.23.alpha1', + 'upgrade_descriptor' => ts('Add Contributor Name to Offline Contribution receipts'), + 'templates' => [ + ['name' => 'contribution_offline_receipt', 'type' => 'text'], + ['name' => 'contribution_offline_receipt', 'type' => 'html'], + ], + ], ]; } diff --git a/xml/templates/message_templates/contribution_offline_receipt_html.tpl b/xml/templates/message_templates/contribution_offline_receipt_html.tpl index c68ad33d0a..4f7b8819f3 100644 --- a/xml/templates/message_templates/contribution_offline_receipt_html.tpl +++ b/xml/templates/message_templates/contribution_offline_receipt_html.tpl @@ -37,6 +37,14 @@ {ts}Contribution Information{/ts} + + + {ts}Contributor Name{/ts} + + + {contact.display_name} + + {ts}Financial Type{/ts} diff --git a/xml/templates/message_templates/contribution_offline_receipt_text.tpl b/xml/templates/message_templates/contribution_offline_receipt_text.tpl index 2012417303..50e0cd4e37 100644 --- a/xml/templates/message_templates/contribution_offline_receipt_text.tpl +++ b/xml/templates/message_templates/contribution_offline_receipt_text.tpl @@ -8,6 +8,7 @@ {ts}Contribution Information{/ts} =========================================================== +{ts}Contributor{/ts}: {contact.display_name} {ts}Financial Type{/ts}: {$formValues.contributionType_name} {if $lineItem} {foreach from=$lineItem item=value key=priceset} -- 2.25.1