WC_Cart::get_cart_total PHP Method

get_cart_total() public method

Gets the cart contents total (after calculation).
public get_cart_total ( ) : string
return string formatted price
    public function get_cart_total()
    {
        if (!$this->prices_include_tax) {
            $cart_contents_total = wc_price($this->cart_contents_total);
        } else {
            $cart_contents_total = wc_price($this->cart_contents_total + $this->tax_total);
        }
        return apply_filters('woocommerce_cart_contents_total', $cart_contents_total);
    }
WC_Cart