=== modified file 'uc_order/uc_order.module' --- uc_order/uc_order.module 2009-05-07 20:12:13 +0000 +++ uc_order/uc_order.module 2009-07-02 22:25:05 +0000 @@ -1385,18 +1385,16 @@ function uc_order_get_total($order, $pro } } - if ($products_only) { - return $total; - } - - $total += uc_line_items_calculate($order); - - $result = module_invoke_all('order', 'total', $order, NULL); - foreach ($result as $key => $value) { - $total += $value; + if (!$products_only) { + $total += uc_line_items_calculate($order); + + $result = module_invoke_all('order', 'total', $order, NULL); + foreach ($result as $key => $value) { + $total += $value; + } } - return $total; + return round($total, variable_get('uc_currency_prec', 2)); } function uc_order_is_shippable($order) {