function get_order_total() { global $order; $order_total_tax = $order->info['tax']; $order_total = $order->info['total']; if ($this->include_tax != 'true') $order_total -= $order->info['tax']; $orderTotalFull = $order_total; $order_total = array('totalFull'=>$orderTotalFull, 'total'=>$order_total, 'tax'=>$order_total_tax); return $order_total; }