From 09b5de36f81c86938225c2b7c196d81c58be1d39 Mon Sep 17 00:00:00 2001 From: Justin Freeman Date: Thu, 18 Feb 2021 17:50:42 +1100 Subject: [PATCH] CIVICRM-1670 Issue #2384 - Remove text about email receipts for each recurring contribution --- CRM/Core/Payment.php | 16 +++------------- templates/CRM/Contribute/Form/Contribution.tpl | 2 +- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/CRM/Core/Payment.php b/CRM/Core/Payment.php index 74892574f8..8064029670 100644 --- a/CRM/Core/Payment.php +++ b/CRM/Core/Payment.php @@ -584,20 +584,10 @@ abstract class CRM_Core_Payment { // not documented clearly above. switch ($context) { case 'contributionPageRecurringHelp': - // require exactly two parameters - if (array_keys($params) == [ - 'is_recur_installments', - 'is_email_receipt', - ]) { - $gotText = ts('Your recurring contribution will be processed automatically.'); - if ($params['is_recur_installments']) { - $gotText .= ' ' . ts('You can specify the number of installments, or you can leave the number of installments blank if you want to make an open-ended commitment. In either case, you can choose to cancel at any time.'); - } - if ($params['is_email_receipt']) { - $gotText .= ' ' . ts('You will receive an email receipt for each recurring contribution.'); - } + if ($params['is_recur_installments']) { + return ts('You can specify the number of installments, or you can leave the number of installments blank if you want to make an open-ended commitment. In either case, you can choose to cancel at any time.'); } - return $gotText; + return ''; case 'contributionPageContinueText': return ts('Click the Continue button to proceed with the payment.'); diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index d138524d16..185d5970d1 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -113,7 +113,7 @@
- {ts}Your recurring contribution will be processed automatically for the number of installments you specify. You can leave the number of installments blank if you want to make an open-ended commitment. In either case, you can choose to cancel at any time. You will receive an email receipt for each recurring contribution. The receipts will include a link you can use if you decide to modify or cancel your future contributions.{/ts} + {ts}You can leave the number of installments blank if you want to make an open-ended commitment. In either case, you can choose to cancel at any time.{/ts} -- 2.25.1