From d8388ef266d4ef25c5a3524e53d2e010ce0b7438 Mon Sep 17 00:00:00 2001 From: vedanshujain Date: Tue, 3 Mar 2020 16:34:35 +0530 Subject: [PATCH] Remove rounding because we already appropriately round in `get_rounded_items_total`. --- includes/class-wc-cart-totals.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-cart-totals.php b/includes/class-wc-cart-totals.php index a32c9a943e0..c0d4ec443b1 100644 --- a/includes/class-wc-cart-totals.php +++ b/includes/class-wc-cart-totals.php @@ -684,7 +684,7 @@ final class WC_Cart_Totals { $items_total = $this->get_rounded_items_total( $this->get_values_for_total( 'total' ) ); - $this->set_total( 'items_total', round( $items_total ) ); + $this->set_total( 'items_total', $items_total ); $this->set_total( 'items_total_tax', array_sum( array_values( wp_list_pluck( $this->items, 'total_tax' ) ) ) ); $this->cart->set_cart_contents_total( $this->get_total( 'items_total' ) );