From f1564cbd48ae74a039f37051ae091cd941e0c888 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 8 Sep 2023 11:17:28 +1200 Subject: [PATCH] Stop checking contributeMode in ContributionPage confirm.tpl --- .../Contribute/Form/Contribution/ThankYou.tpl | 40 +++++++++---------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl index 0027c64cdf..a31d0feba0 100644 --- a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl +++ b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl @@ -246,35 +246,31 @@ {/if} - {if ( $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) ) or $email } - {if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) } - {if $billingName or $address} -
-
+ {if $billingName or $address} +
+
{ts}Billing Name and Address{/ts} -
-
-
{$billingName}
-
-
-
-
{$address|nl2br}
-
-
- {/if} - {/if} - {if !$emailExists} -
-
- {ts}Your Email{/ts} +
+
{$billingName}
+
-
-
{$email}
+
+
{$address|nl2br}
{/if} + {if !$emailExists && $email} +
+
+ {ts}Your Email{/ts} +
+
+
{$email}
+
+
+
{/if} {if in_array('credit_card_number', $form) || in_array('bank_account_number', $form) && ($amount GT 0 OR $minimum_fee GT 0)} -- 2.25.1