Automattic\WooCommerce\StoreApi\Utilities
CartController::calculate_totals()
Recalculates the cart totals.
Метод класса: CartController{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$CartController = new CartController(); $CartController->calculate_totals();
Код CartController::calculate_totals() CartController::calculate totals WC 8.7.0
public function calculate_totals() { $cart = $this->get_cart_instance(); $cart->get_cart(); $cart->calculate_fees(); $cart->calculate_shipping(); $cart->calculate_totals(); }