WC_Cart::get_cart_total()
Gets the cart contents total (after calculation).
Метод класса: WC_Cart{}
Хуки из метода
Возвращает
Строку
. formatted price
Использование
$WC_Cart = new WC_Cart(); $WC_Cart->get_cart_total();
Код WC_Cart::get_cart_total() WC Cart::get cart total WC 9.6.0
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() ) ); }