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