PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - 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 displayAdminOrder

Informations

Display new elements in the Back Office, tab AdminOrder This hook launches modules when the AdminOrder tab is displayed in the Back Office
Hook displayAdminOrder
Locations
BO
Type display
Origin core
Aliases [adminOrder]

Located in

Origin File
core src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/view.html.twig

Parameters details

    <?php
    array(
     'id_order' = (int) Order ID
    );

Call of the Hook in the origin file

{{ renderhook('displayAdminOrder', {'id_order': orderForViewing.id}) }}

Example implementation

This hook has been implemented as an example in our modules examples repository - demovieworderhooks.