VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Aliciah85 on January 20, 2013, 15:27:50 PM

Title: Mini Cart Total- dont include tax
Post by: Aliciah85 on January 20, 2013, 15:27:50 PM
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!
Title: Re: Mini Cart Total- dont include tax
Post by: K&K media production on January 20, 2013, 18:31:22 PM
Hi,

please try


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

</div>