PrestaShop Developer Conference
PrestaShop Developer Conference
November 6, 2024
Let's talk code, commerce and open source.

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 actionAdminOrdersTrackingNumberUpdate

Informations

After setting the tracking number for the order This hook allows you to execute code after the unique tracking number for the order was added
Hook actionAdminOrdersTrackingNumberUpdate
Locations
BO
Type action
Origin core
Aliases

Located in

Origin File
core src/Adapter/Order/CommandHandler/UpdateOrderShippingDetailsHandler.php

Parameters details

    <?php
    array(
      'order' => (Order),
      'customer' => (Customer),
      'carrier' => (Carrier)
    );

Call of the Hook in the origin file

Hook::exec('actionAdminOrdersTrackingNumberUpdate', [
                    'order' => $order,
                    'customer' => $customer,
                    'carrier' => $carrier,
                ], null, false, true, false, $order->id_shop)