From: eileen Date: Thu, 31 Oct 2019 09:54:15 +0000 (+1300) Subject: Simplify billingName logic on xml/templates/message_templates/membership_online_recei... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=207229af9bc214d3dbe8c3fd8cc8481571675c0b;p=civicrm-core.git Simplify billingName logic on xml/templates/message_templates/membership_online_receipt_html.tpl --- diff --git a/xml/templates/message_templates/membership_online_receipt_html.tpl b/xml/templates/message_templates/membership_online_receipt_html.tpl index f6c8caa23e..cf99a79680 100644 --- a/xml/templates/message_templates/membership_online_receipt_html.tpl +++ b/xml/templates/message_templates/membership_online_receipt_html.tpl @@ -392,33 +392,31 @@ {/foreach} {/if} - {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary} - {if $is_pay_later} - - - {ts}Registered Email{/ts} - - + {if $billingName} + + {ts}Billing Name and Address{/ts} + + + - {$email} + {$billingName}
+ {$address|nl2br}
+ {$email} - - {elseif $amount GT 0 OR $membership_amount GT 0} - + + {elseif $email}} + - {ts}Billing Name and Address{/ts} + {ts}Registered Email{/ts} - - + + - {$billingName}
- {$address|nl2br}
- {$email} + {$email} - - {/if} - {/if} + + {/if} {if $credit_card_type}