From 882bd8cb3d845f5545248662a1a031ac506eca35 Mon Sep 17 00:00:00 2001 From: "Matthew Wire (MJW Consulting)" Date: Mon, 4 Mar 2019 14:11:44 +0000 Subject: [PATCH] Add billingblock region to event registration confirm/thankyou to match contribution confirm/thankyou --- templates/CRM/Event/Form/Registration/Confirm.tpl | 14 ++++++++------ templates/CRM/Event/Form/Registration/ThankYou.tpl | 14 ++++++++------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/templates/CRM/Event/Form/Registration/Confirm.tpl b/templates/CRM/Event/Form/Registration/Confirm.tpl index f5d8578286..26398922f9 100644 --- a/templates/CRM/Event/Form/Registration/Confirm.tpl +++ b/templates/CRM/Event/Form/Registration/Confirm.tpl @@ -168,17 +168,19 @@ {/if} {if $contributeMode eq 'direct' and ! $is_pay_later and !$isAmountzero and !$isOnWaitlist and !$isRequireApproval} + {crmRegion name="event-confirm-billing-block"}
-
- {ts}Credit Card Information{/ts} -
-
-
{$credit_card_type}
+
+ {ts}Credit Card Information{/ts} +
+
+
{$credit_card_type}
{$credit_card_number}
-
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
+
{if $credit_card_exp_date}{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}{/if}
+ {/crmRegion} {/if} {if $contributeMode NEQ 'notify'} {* In 'notify mode, contributor is taken to processor payment forms next *} diff --git a/templates/CRM/Event/Form/Registration/ThankYou.tpl b/templates/CRM/Event/Form/Registration/ThankYou.tpl index cdf500de27..72d6aa06b2 100644 --- a/templates/CRM/Event/Form/Registration/ThankYou.tpl +++ b/templates/CRM/Event/Form/Registration/ThankYou.tpl @@ -189,17 +189,19 @@ {/if} {if $contributeMode eq 'direct' and $paidEvent and ! $is_pay_later and !$isAmountzero and !$isOnWaitlist and !$isRequireApproval} + {crmRegion name="event-thankyou-billing-block"}
-
- {ts}Credit Card Information{/ts} -
-
-
{$credit_card_type}
+
+ {ts}Credit Card Information{/ts} +
+
+
{$credit_card_type}
{$credit_card_number}
-
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
+
{if $credit_card_exp_date}{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}{/if}
+ {/crmRegion} {/if} {if $event.thankyou_footer_text} -- 2.25.1