Warning: You are browsing the documentation for PrestaShop 8, which is outdated.
You might want to read an updated version of this page for the current version, PrestaShop 9. Read the updated version of this page
Hook | actionOrderStatusUpdate |
---|---|
Locations | FO |
Type | action |
Origin | core |
Aliases | [updateOrderStatus] |
Description | This hook launches modules when the status of an order changes |
Origin | File |
---|---|
core | classes/order/OrderHistory.php |
<?php
array(
'newOrderStatus' => (object) OrderState,
'oldOrderStatus' => (object) OrderState,
'id_order' => (int) Order ID
);
Hook::exec('actionOrderStatusUpdate', [
'newOrderStatus' => $new_os,
'oldOrderStatus' => $old_os,
'id_order' => (int) $order->id,
], null, false, true, false, $order->id_shop)