WC_Cart::get_cart_tax()

Gets the cart tax (after calculation).


Description Description


Return Return

(string) formatted price


Top ↑

Source Source

File: includes/class-wc-cart.php

	public function get_cart_tax() {
		$cart_total_tax = wc_round_tax_total( $this->get_cart_contents_tax() + $this->get_shipping_tax() + $this->get_fee_tax() );

		return apply_filters( 'woocommerce_get_cart_tax', $cart_total_tax ? wc_price( $cart_total_tax ) : '' );
	}


Top ↑

User Contributed Notes User Contributed Notes

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