Home Virtuemart development How to config or hack the display of Tax in Cart.

VirtueMart Shopping Cart

VirtueMart
Your Cart is currently empty.

Newsletter

How to config or hack the display of Tax in Cart.

Config : It is under shopper groups.  In the back end under Shopper click on List Shopper Groups.  Then click on the shopper group or groups that are published.  Uncheck the option to "Show Prices including tax". 

Hack : Change two files

1.Change the following code from "components\com_virtuemart\themes\default\templates\basket" :- in line 72-77

 1 
 2 
 3 

 4 
 5 
 6 
<?php if ( $show_tax ) { ?>
  <tr class="sectiontableentry1">
        <td colspan="4" align="right" valign="top"><?php echo $VM_LANG->_(
          'PHPSHOP_ORDER_PRINT_TOTAL_TAX'
?>: </td> 
        <td colspan="3" align="right""><?php echo $tax_display ?></td>
  </tr>
<?php ?>  

2.Change the following code from "ro_basket.php"

 1 
 2 
 3 

 4 
 5 
 6 
 7 
<?php if ( $tax ) { ?>
  <tr class="sectiontableentry1">
        <td colspan="4" align="right" valign="top"><?php echo $VM_LANG->_(
          'PHPSHOP_ORDER_PRINT_TOTAL_TAX'
?>: </td> 
        <td align="right"><?php echo $tax_display ?></td>
  </tr>
<?php 

 
Copyright © 2010 JoomlaVM. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.