WC_Cart::get_cart_contents_total()publicWC 3.2.0

Gets cart total. This is the total of items in the cart, but after discounts. Subtotal is before discounts.

Метод класса: WC_Cart{}

Хуки из метода

Возвращает

float.

Использование

$WC_Cart = new WC_Cart();
$WC_Cart->get_cart_contents_total();

Список изменений

С версии 3.2.0 Введена.

Код WC_Cart::get_cart_contents_total() WC 8.7.0

public function get_cart_contents_total() {
	return apply_filters( 'woocommerce_cart_' . __FUNCTION__, $this->get_totals_var( 'cart_contents_total' ) );
}