diff --git a/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php b/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php index 7e0695eaeee..79394783f58 100644 --- a/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php +++ b/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php @@ -161,9 +161,9 @@ class WC_Shipping_Free_Shipping extends WC_Shipping_Method { $total = WC()->cart->get_displayed_subtotal(); if ( 'incl' === WC()->cart->tax_display_cart ) { - $total = $total - ( WC()->cart->get_cart_discount_total() + WC()->cart->get_cart_discount_tax_total() ); + $total = round( $total - ( WC()->cart->get_cart_discount_total() + WC()->cart->get_cart_discount_tax_total() ), wc_get_price_decimals() ); } else { - $total = $total - WC()->cart->get_cart_discount_total(); + $total = round( $total - WC()->cart->get_cart_discount_total(), wc_get_price_decimals() ); } if ( $total >= $this->min_amount ) {