Browse Source

try to disable payment info if total = 0

andre 4 years ago
parent
commit
c0c9f3ca34
1 changed files with 4 additions and 2 deletions
  1. 4 2
      checkout.tpl

+ 4 - 2
checkout.tpl

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