CRM-14293: Event Cart checkout shows unlabeled checkbox for Pay Later although option...
authoryashodha <yashodha.chaku@webaccessglobal.com>
Wed, 10 Jun 2015 12:35:14 +0000 (18:05 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Wed, 10 Jun 2015 12:35:14 +0000 (18:05 +0530)
----------------------------------------
* CRM-14293: Event Cart checkout shows unlabeled checkbox for Pay Later although option is disabled
  https://issues.civicrm.org/jira/browse/CRM-14293

templates/CRM/Event/Cart/Form/Checkout/Payment.tpl

index b35aefd81f674fe56cabf6ff036fe91fa2522837..92713cf024be59d09772d7521d559fef2152701f 100644 (file)
   </tfoot>
 </table>
 {if $payment_required == true}
-<div class="crm-section {$form.is_pay_later.name}-section">
-  <div class="label">{$form.is_pay_later.label}</div>
-  <div class="content">{$form.is_pay_later.html}
-  </div>
-  <div class="clear"></div>
-</div>
-<div class="pay-later-instructions" style="display:none">
-  {$pay_later_instructions}
-</div>
+  {if $form.is_pay_later.label}
+    <div class="crm-section {$form.is_pay_later.name}-section">
+      <div class="label">{$form.is_pay_later.label}</div>
+      <div class="content">{$form.is_pay_later.html}
+      </div>
+      <div class="clear"></div>
+    </div>
+    <div class="pay-later-instructions" style="display:none">
+      {$pay_later_instructions}
+    </div>
+{/if}
 {include file='CRM/Core/BillingBlockWrapper.tpl'}
 {/if}
 {if $collect_billing_email == true}