I wanted to change my order total using this modification to
Subtotal:
Shipping:
Subtotal Excl VAT Incl Shipping:
VAT:
Total Incl VAT:
To give the Sub-Total ex VAT but including the shipping,
catalog/includes/modules/order_total/ot_subtotal_ex.php
Find:
if (DISPLAY_PRICE_WITH_TAX == 'true')
{
$this->output[] = array('title' => $this->title . ':',
'text' => $currencies->format($order->info['subtotal']-$order->info['tax'], true, $order->info['currency'], $order->info['currency_value']),
'value' => $order->info['subtotal']);
}
else
{
$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:
if (DISPLAY_PRICE_WITH_TAX == 'true')
{
// Changed to added shipping cost to the subtotal - added +$order->info['shipping_cost'] into both lines below
$this->output[] = array('title' => $this->title . ':',
'text' => $currencies->format($order->info['subtotal']-$order->info['tax']+$order->info['shipping_cost'], true, $order->info['currency'], $order->info['currency_value']),
'value' => $order->info['subtotal']+$order->info['shipping_cost']);
}
else
{
// Changed to added shipping cost to the subtotal - added +$order->info['shipping_cost'] into both lines below
$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']+$order->info['shipping_cost']);
}
Basically you are adding +$order->info['shipping_cost'] to anywhere there is $order->info['subtotal']
This may or may not be the correct way of doing it, but it did work for me.
Does not include the full package. Do not copy over your file, just insert code above
More...





LinkBack URL
About LinkBacks










Bookmarks