From 207229af9bc214d3dbe8c3fd8cc8481571675c0b Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 31 Oct 2019 22:54:15 +1300 Subject: [PATCH] Simplify billingName logic on xml/templates/message_templates/membership_online_receipt_html.tpl --- .../membership_online_receipt_html.tpl | 38 +++++++++---------- 1 file changed, 18 insertions(+), 20 deletions(-) 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} -- 2.25.1