From d8f504849f50e59e566eb1d418413b534a349ec1 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 26 Feb 2014 15:53:32 +0000 Subject: [PATCH] round mijireh shipping amount --- includes/gateways/mijireh/class-wc-gateway-mijireh.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/gateways/mijireh/class-wc-gateway-mijireh.php b/includes/gateways/mijireh/class-wc-gateway-mijireh.php index ababc111b18..b01cef4f326 100644 --- a/includes/gateways/mijireh/class-wc-gateway-mijireh.php +++ b/includes/gateways/mijireh/class-wc-gateway-mijireh.php @@ -264,10 +264,10 @@ class WC_Gateway_Mijireh extends WC_Payment_Gateway { $mj_order->discount = $wc_order->get_total_discount(); if ( get_option( 'woocommerce_prices_include_tax' ) == 'yes' ) { - $mj_order->shipping = $wc_order->get_total_shipping() + $wc_order->get_shipping_tax(); + $mj_order->shipping = round( $wc_order->get_total_shipping() + $wc_order->get_shipping_tax(), 2 ); $mj_order->show_tax = false; } else { - $mj_order->shipping = $wc_order->get_total_shipping(); + $mj_order->shipping = round( $wc_order->get_total_shipping(), 2 ); $mj_order->tax = $wc_order->get_total_tax(); }