Online membership receipt simplification
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 21 Nov 2023 00:13:15 +0000 (13:13 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 21 Nov 2023 19:14:17 +0000 (08:14 +1300)
Rather than having one section in an IF for the scenario where we have a separate payment situation
but there is no contribution payment, consolidate this scenario with the general 'we
have a membership but no contribution in the receipt

xml/templates/message_templates/membership_online_receipt_html.tpl

index bae92aa780b88c5bfea1e5954ca5afad681585b3..0381eca2005074cd1cf18d833fb99258b4de82bc 100644 (file)
@@ -72,7 +72,7 @@
         <th {$headerStyle}>{ts}Membership Fee{/ts}</th>
       </tr>
 
-      {if !$useForMember and isset($membership_amount) and !empty($is_quick_config)}
+      {if !$isShowLineItems && {contribution.total_amount|boolean}}
         <tr>
           <td {$labelStyle}>
             {ts 1=$membership_name}%1 Membership{/ts}
             {contribution.total_amount} {if isset($amount_level)} - {$amount_level}{/if}
         </td>
       </tr>
-    {elseif isset($membership_amount)}
-      <tr>
-        <th {$headerStyle}>
-          {ts}Membership Fee{/ts}
-        </th>
-      </tr>
-      <tr>
-        <td {$labelStyle}>
-          {ts 1=$membership_name}%1 Membership{/ts}
-        </td>
-        <td {$valueStyle}>
-          {$membership_amount|crmMoney}
-        </td>
-      </tr>
     {/if}
 
     {if !empty($receive_date)}