Right
There is a way to code this into currencies (probably not the cleanest way but it works)
OK here's what to do
Set up Zen cart to (Display Prices with Tax = false)
Then
Change the order totals to
Shipping to 200
Subtotal to 300
VAT to 400
Total to 500
Then open \includes\classes\currencies.php
look for around line 71
PHP Code:
function display_price($products_price, $products_tax, $quantity = 1) {
return $this->format(zen_add_tax($products_price, $products_tax) * $quantity);
}
}
change to
PHP Code:
function display_price($products_price, $products_tax, $quantity = 1) {
return $this->format ($products_price * $quantity) . ' ex. <img border="0" src="images/pixel_trans.gif" width="2%" height="1"><span class="incvat">' . $this->format (zen_add_tax($products_price, $products_tax)* 1.175* $quantity) . ' inc.' . '</span>';
return $return_this;
}
}
then open
\includes\modules\order_total\ot_subtotal.php
look for around line 35
PHP Code:
function process() {
global $order, $currencies;
$this->output[] = array('title' => $this->title . ':',
'text' => $currencies->format($order->info['subtotal'], true, $order->info['currency'], $order->info['currency_value']),
'value' => $order->info['subtotal']);
}
change to
PHP Code:
function process() {
global $order, $currencies;
$this->output[] = array('title' => $this->title . ':',
'text' => $currencies->format($order->info['subtotal']+$order->info['shipping_cost'], true, $order->info['currency'], $order->info['currency_value']),
'value' => $order->info['subtotal']);
}
PLEASE ENSURE THAT YOU BACKUP BEFORE CHANGING ANY OF THE FILES
Hope this helps
Dave
Bookmarks