WC_AJAX::get_cart_totals
AJAX receive updated cart_totals div.
Method of the class: WC_AJAX{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WC_AJAX::get_cart_totals();
WC_AJAX::get_cart_totals() WC AJAX::get cart totals code WC 10.5.0
public static function get_cart_totals() {
wc_maybe_define_constant( 'WOOCOMMERCE_CART', true );
WC()->cart->calculate_totals();
woocommerce_cart_totals();
wp_die();
}