Hi,
This is a bug, and has been addressed in the upcoming v139 release.
There are a couple of files that need to be edited to fix this.
First is includes/classes/order.php
circa line 347 - you should see
PHP Code:
'subtotal' => 0,
'tax' => 0,
'total' => 0,
which should be changed to
PHP Code:
'subtotal' => 0,
'shipping_tax'=>0,
'tax' => 0,
'total' => 0,
next you need to edit includes/modules.order_total/ot_shipping.php
circa line 67 change
PHP Code:
$order->info['tax'] += $shipping_tax_amount;
$order->info['tax_groups']["$shipping_tax_description"] += zen_calculate_tax($order->info['shipping_cost'], $shipping_tax);
to
PHP Code:
$order->info['tax'] += $shipping_tax_amount;
$order->info['shipping_tax'] += $shipping_tax_amount;
$order->info['tax_groups']["$shipping_tax_description"] += zen_calculate_tax($order->info['shipping_cost'], $shipping_tax);
and finally includes/modules/order_total/ot_group_pricing.php
circa line 60
change
PHP Code:
if ($this->include_shipping != 'true') $order_total -= $order->info['shipping_cost'];
to
PHP Code:
if ($this->include_shipping != 'true') $order_total -= $order->info['shipping_cost'];
if ($this->include_shipping != 'true') $order_total -= $order->info['shipping_tax'];
Remember to backup any files you edit, in case of disasters.
Bookmarks