From dd0e026ae7230ab72857dfc2a71a951c3be0d475 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 25 Mar 2014 11:36:54 +0000 Subject: [PATCH] Possible workaround for @BFTrick's issue. --- includes/class-wc-shipping-rate.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/class-wc-shipping-rate.php b/includes/class-wc-shipping-rate.php index 6ee2e0132e4..771083aba49 100644 --- a/includes/class-wc-shipping-rate.php +++ b/includes/class-wc-shipping-rate.php @@ -11,7 +11,9 @@ * @author WooThemes */ -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly +} class WC_Shipping_Rate { @@ -47,8 +49,9 @@ class WC_Shipping_Rate { */ function get_shipping_tax() { $taxes = 0; - if ( $this->taxes && sizeof( $this->taxes ) > 0 ) + if ( $this->taxes && sizeof( $this->taxes ) > 0 && ! WC()->customer->is_vat_exempt() ) { $taxes = array_sum( $this->taxes ); + } return $taxes; } } \ No newline at end of file