Remove rounding because we already appropriately round in `get_rounded_items_total`.

This commit is contained in:
vedanshujain 2020-03-03 16:34:35 +05:30
parent 1314fdc0e7
commit d8388ef266
1 changed files with 1 additions and 1 deletions

View File

@ -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' ) );