From 3228fecbe5320632e638d96eaa4fb3f0bc678fd1 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 9 Apr 2014 15:50:13 +0100 Subject: [PATCH] Work out cart discount without tax amounts #5300 --- .../post-types/meta-boxes/class-wc-meta-box-order-items.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/admin/post-types/meta-boxes/class-wc-meta-box-order-items.php b/includes/admin/post-types/meta-boxes/class-wc-meta-box-order-items.php index 0ba9cc71675..5154fd3b042 100644 --- a/includes/admin/post-types/meta-boxes/class-wc-meta-box-order-items.php +++ b/includes/admin/post-types/meta-boxes/class-wc-meta-box-order-items.php @@ -150,8 +150,8 @@ class WC_Meta_Box_Order_Items { wc_update_order_item_meta( $item_id, '_line_tax', wc_format_decimal( $line_tax[ $item_id ] ) ); // Total up - $subtotal += wc_format_decimal( $line_subtotal[ $item_id ] ) + wc_format_decimal( $line_subtotal_tax[ $item_id ] ); - $total += wc_format_decimal( $line_total[ $item_id ] ) + wc_format_decimal( $line_tax[ $item_id ] ); + $subtotal += wc_format_decimal( $line_subtotal[ $item_id ] ); + $total += wc_format_decimal( $line_total[ $item_id ] ); // Clear meta cache wp_cache_delete( $item_id, 'order_item_meta' );