Author Topic: Show Shipping Tax total in confirmation email  (Read 1484 times)

samzad

  • Beginner
  • *
  • Posts: 9
Show Shipping Tax total in confirmation email
« on: February 08, 2012, 22:50:57 pm »
Hi everyone
was trying to show shipping tax in confirmation email, so I have edited the following tpl file:
/themes/default/templates/order_emails/confirmation_email.tpl.php

code (add on is in red):
<tr class="Stil1">
          <td colspan=4 align=right><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_TOTAL_TAX') ?> :</td>
          <td><?php echo $order_tax ?></td>
         
        </tr>
        <tr class="Stil1">
          <td colspan=4 align=right><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_SHIPPING_TAX') ?> :</td>
          <td><?php echo $order_shipping_tax ?></td>
        </tr>

Now Shipping Tax heading showing up but not the actual tax value (same code is used in order.order_print.php html file). Technically speaking confirmation email should show shipping tax value with the same changes, but it isn't doing so. Am I doing something wrong? Any clue guys?
Thanks in advance

carbon-uk

  • Beginner
  • *
  • Posts: 29
Re: Show Shipping Tax total in confirmation email
« Reply #1 on: February 17, 2012, 15:53:12 pm »
Just added this to confirmation_email.tpl.php

Code: [Select]
<td>£<?php  $ship_tx $db->f("order_shipping_tax");  echo $ship_tx ?></td>

Seems to work perfect.