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 actionOrderStatusUpdate

Informations

Order status update - Event This hook launches modules when the status of an order changes
Hook actionOrderStatusUpdate
Locations
FO
Type action
Origin core
Aliases [updateOrderStatus]
Description This hook launches modules when the status of an order changes

Located in

Origin File
core classes/order/OrderHistory.php

Parameters details

    <?php
    array(
      'newOrderStatus' => (object) OrderState,
      'oldOrderStatus' => (object) OrderState,
      'id_order' => (int) Order ID
    );

Call of the Hook in the origin file

Hook::exec('actionOrderStatusUpdate', [
            'newOrderStatus' => $new_os,
            'oldOrderStatus' => $old_os,
            'id_order' => (int) $order->id,
        ], null, false, true, false, $order->id_shop)