Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify billingName logic on xml/templates/message_templates/members… #15674

Merged
merged 1 commit into from
Oct 31, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 18 additions & 20 deletions xml/templates/message_templates/membership_online_receipt_html.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -392,33 +392,31 @@
{/foreach}
{/if}

{if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary}
{if $is_pay_later}
<tr>
<th {$headerStyle}>
{ts}Registered Email{/ts}
</th>
</tr>
{if $billingName}
<tr>
<th {$headerStyle}>
{ts}Billing Name and Address{/ts}
</th>
</tr>
<tr>
<td colspan="2" {$valueStyle}>
{$email}
{$billingName}<br />
{$address|nl2br}<br />
{$email}
</td>
</tr>
{elseif $amount GT 0 OR $membership_amount GT 0}
<tr>
</tr>
{elseif $email}}
<tr>
<th {$headerStyle}>
{ts}Billing Name and Address{/ts}
{ts}Registered Email{/ts}
</th>
</tr>
<tr>
</tr>
<tr>
<td colspan="2" {$valueStyle}>
{$billingName}<br />
{$address|nl2br}<br />
{$email}
{$email}
</td>
</tr>
{/if}
{/if}
</tr>
{/if}

{if $credit_card_type}
<tr>
Expand Down