After validating an order:
This hook is called after validating an order by core
Hook locations:
Hook type: action
Located in:
<?php
[
'cart' => (Cart|null) $contextCart,
'order' => (Order|null) $order,
'orders' => (array) $orderList,
'customer' => (Customer) $contextCustomer,
'currency' => (Currency) $contextCurrency,
'orderStatus' => (OrderState) $orderState,
]
Hook::exec(
'actionValidateOrderAfter',
[
'cart' => $this->context->cart,
'order' => $order ?? null,
'orders' => $order_list,
'customer' => $this->context->customer,
'currency' => $this->context->currency,
'orderStatus' => new OrderState(isset($order) ? $order->current_state : null),
]
)