Simplify billingName logic on xml/templates/message_templates/membership_online_recei...
authoreileen <emcnaughton@wikimedia.org>
Thu, 31 Oct 2019 09:54:15 +0000 (22:54 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 31 Oct 2019 09:54:15 +0000 (22:54 +1300)
xml/templates/message_templates/membership_online_receipt_html.tpl

index f6c8caa23ee65c5a8c708f9c6f60c4d935a9d8e5..cf99a7968028a5944a39e87a3aca5f41e5dd148b 100644 (file)
       {/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>