News:

Support the VirtueMart project and become a member

Main Menu

Price without tax in cart

Started by jan suhr, December 30, 2011, 13:46:17 PM

Previous topic - Next topic

jan suhr

I would like to show the product price without tax in the item listing of the cart.

In my case the third column shows the items price incl. tax, this field is just before the quantity field. This price I want to display without tax.

I found this line of code in "default_pricelist.php"

<td align="center" >
<?php
if (VmConfig::get('checkout_show_origprice',1) && !empty($this->cart->pricesUnformatted[$pkey]['basePriceWithTax']) && $prow->basePriceWithTax != $prow->salesPrice ) {
echo 
'<span style="text-decoration:line-through">'.$prow->basePriceWithTax .'</span><br />' ;
}
echo $prow->salesPrice ;
?>

</td>


What should I replace "basePriceWithTax" with, tried "basePriceWithOutTax" but it didn't work.

Or is there some setting I have missed?

Thanks

Jan
Jan Suhr
Color Consult AB
Stockholm, Sweden

seagul

I used
$this->cart->prices[$pkey]['basePrice'];
for the basePrice.
But it does not help for the Emails sent when ordering.

Any other ideas?