Jump to content

Show Total Order for module


Hugo_morais84

Recommended Posts

I have 3 payment modules - Paypal, wire transfer, multibanco.

My cart-summary-totals.tpl 

is: 

<div class="card-block cart-summary-totals">

  {block name='cart_summary_tax'}
    <div class="cart-summary-line">
      <span class="label">{$cart.totals.total.label} {$cart.labels.tax_short}</span>
      <span class="value">{$cart.totals.total.amount+$cart.subtotals.tax.amount} {$currency.sign}</span>
    </div>
  {/block}

</div>

 

And total price with fee for paypal does not change TOTAL

but with this code changes:

<div class="card-block cart-summary-totals">

 {block name='cart_summary_total'}
    <div class="cart-summary-line cart-total">
      <span class="label">{l s='Total (tax + shipping incl.)' d='Shop.Forms.Labels'}</span>
      <span class="value">{$cart.totals.total.amount + $cart.subtotals.tax.amount|string_format:"%.2f"} {$currency.sign}</span>
    </div>
 {/block}

</div>

 

How do I get a code to work with 2 modules and another with 1 module using both codes?

For example, if you select a payment module use the first code if you select paypal use the second code?
it's possible?

 

 

Thank you for your help

 
  

 

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...