Round the totals

Closes #11803
This commit is contained in:
Mike Jolley 2016-10-11 15:56:14 +01:00
parent f3a45aa388
commit cfa2ee3605
1 changed files with 2 additions and 2 deletions

View File

@ -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 ) {