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

Hook displayAdminOrderTop

Informations

Display new elements in the Back Office, top of Order page This hook launches modules when the Order is displayed in the Back Office
Hook displayAdminOrderTop
Locations
BO
Type display
Origin core
Aliases

Located in

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

Call of the Hook in the origin file

{% set displayAdminOrderTopHookContent = renderhook('displayAdminOrderTop', {'id_order': orderForViewing.id}) %}

Example implementation

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