From 0e4ef6564c6dd817dcea7fd8cbae5c3ed1da5213 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Tue, 9 May 2023 13:49:47 +0100 Subject: [PATCH] Show/hide billing name/address on event confirm based on if they're set instead of a magical collection of booleans --- templates/CRM/Event/Form/Registration/Confirm.tpl | 2 +- templates/CRM/Event/Form/Registration/ThankYou.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Event/Form/Registration/Confirm.tpl b/templates/CRM/Event/Form/Registration/Confirm.tpl index 20fa9774f0be..f5308b4e4f02 100644 --- a/templates/CRM/Event/Form/Registration/Confirm.tpl +++ b/templates/CRM/Event/Form/Registration/Confirm.tpl @@ -131,7 +131,7 @@ {include file="CRM/Event/Form/Registration/DisplayProfile.tpl"} - {if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $paidEvent and !$isAmountzero and !$isOnWaitlist and !$isRequireApproval} + {if $billingName or $address}
{ts}Billing Name and Address{/ts} diff --git a/templates/CRM/Event/Form/Registration/ThankYou.tpl b/templates/CRM/Event/Form/Registration/ThankYou.tpl index 0929bc97c9e3..48822814f143 100644 --- a/templates/CRM/Event/Form/Registration/ThankYou.tpl +++ b/templates/CRM/Event/Form/Registration/ThankYou.tpl @@ -156,7 +156,7 @@ {/if} {include file="CRM/Event/Form/Registration/DisplayProfile.tpl"} - {if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $paidEvent and !$isAmountzero and !$isOnWaitlist and !$isRequireApproval} + {if $billingName or $address}
{ts}Billing Name and Address{/ts}