Author Topic: Price without tax in cart  (Read 1979 times)

jan suhr

  • Jr. Member
  • **
  • Posts: 59
Price without tax in cart
« on: December 30, 2011, 13:46:17 pm »
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"

Code: [Select]
<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

  • Jr. Member
  • **
  • Posts: 77
Re: Price without tax in cart
« Reply #1 on: January 13, 2012, 16:05:49 pm »
I used
$this->cart->prices[$pkey]['basePrice'];
for the basePrice.
But it does not help for the Emails sent when ordering.

Any other ideas?