OK, got bored before bedtime. The calculation is done in order.php here
Code:
// Update the final total to include tax if not already tax-inc
if (DISPLAY_PRICE_WITH_TAX == 'true') {
$this->info['total'] = $this->info['subtotal'] + $this->info['shipping_cost'];
} else {
$this->info['total'] = $this->info['subtotal'] + $this->info['tax'] + $this->info['shipping_cost'];
At this point I checked in Eclipse and the outputs were :
$this->info['subtotal'] = 175
$this->info['tax'] = (double) 0
$this->info['shipping_cost'] = null
info Array [16]
order_status (string:1) 1
currency (string:3) GBP
currency_value (string:10) 1.00000000
payment_method null
payment_module_code null
coupon_code null
shipping_method null
shipping_module_code null
shipping_cost null
subtotal (double) 175
shipping_tax (int) 0
tax (double) 0
total (int) 0
tax_groups Array [1]
comments (string:0)
ip_address (string:29) 192.168.100.24 - 192.168.100.24
products Array [1]
0 Array [16]
qty (int) 100
name (string:17) 38mm Button Badge
model (string:6) 338253
tax (int) 0
tax_groups Array [1]
tax_description (string:9) Sales Tax
price (string:6) 1.7500
final_price (double) 1.75
onetime_charges (int) 0
weight (int) 0
products_priced_by_attribute (string:1) 0
product_is_free (string:1) 0
products_discount_type (string:1) 2
products_discount_type_from (string:1) 0
id (int) 222
rowClass (string:7) rowEven
Think the problem is earlier in the file but need some sleep now :-)
B. Rgds
John