Merge pull request #22812 from totten/master-queue-schema
[civicrm-core.git] / xml / templates / message_templates / membership_offline_receipt_html.tpl
index 034a49975d9c9dd2d98276764d9ced066056bbe6..204abf787d55e4e270c9ab702436c8d87fa43d78 100644 (file)
     <tr>
       <td>
         {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
-        {if !empty($formValues.receipt_text_signup)}
-          <p>{$formValues.receipt_text_signup|htmlize}</p>
-        {elseif !empty($formValues.receipt_text_renewal)}
-          <p>{$formValues.receipt_text_renewal|htmlize}</p>
-        {else}
+        {if $receipt_text}
+          <p>{$receipt_text|htmlize}</p>
           <p>{ts}Thank you for this contribution.{/ts}</p>
         {/if}
       </td>
                               <td>
                                 {$line.unit_price*$line.qty|crmMoney}
                               </td>
-                              {if isset($line.tax_rate) and ($line.tax_rate != "" || $line.tax_amount != "")}
+                              {if $line.tax_rate || $line.tax_amount != ""}
                                 <td>
                                   {$line.tax_rate|string_format:"%.2f"}%
                                 </td>
                   </tr>
                 {/foreach}
                 {if !empty($dataArray)}
-                  {if isset($formValues.total_amount) and isset($totalTaxAmount)}
+                  {if $formValues.total_amount and $totalTaxAmount}
                   <tr>
                     <td {$labelStyle}>
                       {ts}Amount Before Tax:{/ts}
                   {/foreach}
                 {/if}
               {/if}
-              {if isset($totalTaxAmount)}
+              {if $totalTaxAmount}
                 <tr>
                   <td {$labelStyle}>
                     {ts}Total Tax Amount{/ts}