Thanks for the replies, but it's all starting to get a little complicated!
I have no idea what I'm doing with PHP and sadly don't have the time to learn, so I'm hacking it to bits.
I've set admin to "add VAT at the end" and managed to get it to display the price as VAT inc on the products page if the customer is in a VAT zone and display it VAT ex if they are outside a VAT zone.
I used this (as detailed in another thread)...
PHP Code:
function display_price($products_price, $products_tax, $quantity = 1) {
if ($products_tax <='0.0000'){
return $this->format ($products_price * $quantity);
}else{
return $this->format (zen_add_tax($products_price, $products_tax)* 1.175* $quantity);
return $return_this;
}
}
}
My problem now is the checkout (and checkout sidebar)
In includes/modules/pages/shopping_cart/header_php.php
I have changed
PHP Code:
$cartShowTotal = $currencies->format($_SESSION['cart']->show_total());
to
PHP Code:
if ($products_tax <='0.0000'){
$cartShowTotal = $currencies->format($_SESSION['cart']->show_total());
}else{
$cartShowTotal = $currencies->format($_SESSION['cart']->show_total()*1.175);
}
It seems as though it would work but it seems to return $products_tax as 0 whether the customer is in a VAT zone or not. Do I have to define products_tax somewhere in includes/modules/pages/shopping_cart/header_php.php?