News:

Support the VirtueMart project and become a member

Main Menu

Mini Cart Total- dont include tax

Started by Aliciah85, January 20, 2013, 15:27:50 PM

Previous topic - Next topic

Aliciah85

Hi there- i am creating a b2b website so i dont want the tax amount to show until my clients go to the checkout page.

I would like the min cart to only show the total excluding shipping and tax...

I have the virtuemart mini cart displayed on my site and have created the tax to be applied per bill rather than tax per product. I would therefore like the total in my mini cart to be the total excluding tax & shipping (ie to say Sub Total: (sub total of all item ex tax and shipping)).

Is this possible?

The code to display the total is currently
<div class="total">
<?php if ($data->totalProduct) echo  $data->billTotal; ?>
</div>

I have tried substituting the billTotal with billSub but it just removes the total all together.

Any help you can offer would be greatly appreciated!

K&K media production

Hi,

please try


<div class="total">
<?php
$salesPriceWithoutTax 
$data->salesPrice $data->taxAmount;
if (
$data->totalProduct) echo $salesPriceWithoutTax;
?>

</div>