Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.
You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page
Hook | actionOrderStatusPostUpdate |
---|---|
Locations | FO |
Type | action |
Origin | core |
Aliases | [postUpdateOrderStatus] |
Description | Allows to be notified after order status is changed. |
Origin | File |
---|---|
core | classes/order/OrderHistory.php |
<?php
array(
'newOrderStatus' => (object) OrderState,
'oldOrderStatus' => (object) OrderState,
'id_order' => (int) Order ID
);
Hook::exec('actionOrderStatusPostUpdate', [
'newOrderStatus' => $new_os,
'oldOrderStatus' => $old_os,
'id_order' => (int) $order->id,
], null, false, true, false, $order->id_shop)