diff --git a/CRM/Upgrade/Incremental/MessageTemplates.php b/CRM/Upgrade/Incremental/MessageTemplates.php index 21ecf3ec004d..2768fc69b1ea 100644 --- a/CRM/Upgrade/Incremental/MessageTemplates.php +++ b/CRM/Upgrade/Incremental/MessageTemplates.php @@ -199,6 +199,14 @@ protected function getTemplateUpdates() { ['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 c68ad33d0a7f..4f7b8819f3bc 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 201241730349..50e0cd4e3708 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}