WC_Cart::get_total_ex_tax PHP Method

get_total_ex_tax() public method

Gets the total excluding taxes.
public get_total_ex_tax ( ) : string
return string formatted price
    public function get_total_ex_tax()
    {
        $total = $this->total - $this->tax_total - $this->shipping_tax_total;
        if ($total < 0) {
            $total = 0;
        }
        return apply_filters('woocommerce_cart_total_ex_tax', wc_price($total));
    }
WC_Cart