WC_Cart::get_cart_total()

Gets the cart contents total (after calculation).


Description Description


Return Return

(string) formatted price


Top ↑

Source Source

File: includes/class-wc-cart.php

	public function get_cart_total() {
		return apply_filters( 'woocommerce_cart_contents_total', wc_price( wc_prices_include_tax() ? $this->get_cart_contents_total() + $this->get_cart_contents_tax() : $this->get_cart_contents_total() ) );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.