get_total_ex_tax should exclude fee taxes

Closes #17585
This commit is contained in:
Mike Jolley 2017-11-06 16:18:21 +00:00
parent e097a52f48
commit 1b49e9a568
1 changed files with 1 additions and 1 deletions

View File

@ -1768,7 +1768,7 @@ class WC_Cart extends WC_Legacy_Cart {
* @return string formatted price
*/
public function get_total_ex_tax() {
return apply_filters( 'woocommerce_cart_total_ex_tax', wc_price( max( 0, $this->get_total( 'edit' ) - $this->get_cart_contents_tax() - $this->get_shipping_tax() ) ) );
return apply_filters( 'woocommerce_cart_total_ex_tax', wc_price( max( 0, $this->get_total( 'edit' ) - $this->get_cart_tax() ) ) );
}
/**