Fix pay_later to be more accurate & less noticey in membership online receipt
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 17 Nov 2023 20:34:00 +0000 (09:34 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 19 Nov 2023 22:40:06 +0000 (11:40 +1300)
xml/templates/message_templates/membership_online_receipt_html.tpl

index e469152b026713a3cd9517cb432e0236f5479d59..080d2265e6a57ebd2f559d6fdc6f3ecfc74568db 100644 (file)
@@ -24,9 +24,8 @@
     {if !empty($receipt_text)}
      <p>{$receipt_text|htmlize}</p>
     {/if}
-
-    {if $is_pay_later}
-     <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
+    {if {contribution.balance_amount|boolean} && {contribution.is_pay_later|boolean}}
+      <p>{contribution.pay_later_receipt}</p>
     {/if}
 
    </td>