Jelajahi Sumber

try to disable payment info if total = 0

andre 4 tahun lalu
induk
melakukan
c0c9f3ca34
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 4 2
      checkout.tpl

+ 4 - 2
checkout.tpl

@@ -513,6 +513,7 @@
                 {/if}
             </div>
         {/if}
+        {if $total->toNumeric() > 0}
 
         <div class="blocks paymentinfo">
             {* <div class="blocks_heading">
@@ -712,6 +713,7 @@
 				
             </div>
         </div>
+        {/if}
     </div>
 
     {if $shownotesfield}
@@ -1383,7 +1385,7 @@
                         </div>
                     {/foreach}
 
-
+                {if $total->toNumeric() > 0}
                     <h4>{$LANG.orderForm.paymentDetails}</h4>
                     <p class="small text-muted margin-bottom">{$LANG.orderForm.preferredPaymentMethod}</p>
                     {*
@@ -1554,7 +1556,7 @@
                             </p>
                         {/if}
                     {/if}
-
+                {/if}
                     {if $shownotesfield}
                         <h4>{$LANG.orderForm.additionalNotes}</h4>