Jump to content

Recommended Posts

 buen día. Hice un descuento personalizado con código, pero al final no me respeta el total .Alguien sabe porque?

 este  el archivo car details total

 


 {assign var="inicio" value=0}
 {assign var="ntotal" value=$cart.subtotals.discounts.amount}
 {assign var="nsubtotal" value=$cart.totals.total.amount}
 
 {if $cart.products_count>11}
    {for $foo=13 to $cart.products_count}
  
    {$ntotal}
    {/for}
       {math assign = "tt" equation ="(a-b)" a=3  b=$xx} 
    {$nsubtotal=$nsubtotal-$ntotal}
    {$nsubtotal}
{/if}  
    
  
    <div class="cart-summary-line cart-total">
      <span class="label">{$cart.totals.total.label} </span>
        
        
   <span class ="value">{$currency.sign}{$cart.totals.total.amount + $cart.subtotals.discounts.amount} </span>
    </div>

    <div class="cart-summary-line">
      <small class="label">{$cart.subtotals.tax.label}</small>
      <small class="value">{$cart.subtotals.tax.value}</small>
    </div>
  </div>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...