Show/hide billing name/address on event confirm based on if they're set instead of...
authorMatthew Wire <mjw@mjwconsult.co.uk>
Tue, 9 May 2023 12:49:47 +0000 (13:49 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Tue, 9 May 2023 12:51:11 +0000 (13:51 +0100)
templates/CRM/Event/Form/Registration/Confirm.tpl
templates/CRM/Event/Form/Registration/ThankYou.tpl

index 20fa9774f0be3b886f5bdb9b11e458be057036d3..f5308b4e4f02b25714d7ce0f2e1dea2258ab49f6 100644 (file)
 
     {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}
       <div class="crm-group billing_name_address-group">
             <div class="header-dark">
                 {ts}Billing Name and Address{/ts}
index 0929bc97c9e3eddfc73f93badfd3f4f11227e746..48822814f143acf430589f3df9567ad2ed9ab979 100644 (file)
     {/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}
         <div class="crm-group billing_name_address-group">
             <div class="header-dark">
                 {ts}Billing Name and Address{/ts}