WC_AJAX::get_cart_totals()public staticWC 1.0

AJAX receive updated cart_totals div.

Method of the class: WC_AJAX{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_AJAX::get_cart_totals();

WC_AJAX::get_cart_totals() code WC 9.0.1

public static function get_cart_totals() {
	wc_maybe_define_constant( 'WOOCOMMERCE_CART', true );
	WC()->cart->calculate_totals();
	woocommerce_cart_totals();
	wp_die();
}