We currently have a very complex IF clause which includes some deprecated parameters.
However, we can simplify this to simply display the information if availble. We only collect
credit card information if we require it & hence the presence of it is an adequate indicator
as to whether to display it.
We could check for credit_card_number instead but actually there is precedent in another tpl
for checking credit_card_type & it's pretty neutral as both should be present or missing
], $entityFinancialTrxns[2], ['id', 'entity_id']);
$mut->checkMailLog([
'Event Information and Location', 'Registration Confirmation - Annual CiviCRM meet',
+ 'Expires: January 2019',
+ 'Visa',
+ '************1111',
'This letter is a confirmation that your registration has been received and your status has been updated to <strong> Registered</strong>',
]);
$mut->clearMessages();
</tr>
{/if}
- {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
+ {if $credit_card_type}
<tr>
<th {$headerStyle}>
{ts}Credit Card Information{/ts}
{$address}
{/if}
-{if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
+{if $credit_card_type}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Credit Card Information{/ts}