Possible workaround for @BFTrick's issue.

This commit is contained in:
Mike Jolley 2014-03-25 11:36:54 +00:00
parent 9c913de1f2
commit dd0e026ae7
1 changed files with 5 additions and 2 deletions

View File

@ -11,7 +11,9 @@
* @author WooThemes * @author WooThemes
*/ */
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class WC_Shipping_Rate { class WC_Shipping_Rate {
@ -47,8 +49,9 @@ class WC_Shipping_Rate {
*/ */
function get_shipping_tax() { function get_shipping_tax() {
$taxes = 0; $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 ); $taxes = array_sum( $this->taxes );
}
return $taxes; return $taxes;
} }
} }