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
In this tutorial we are going to build a module to extend Order view page and the Orders’ preview. The module will add the following components:
While creating this component you will learn how to:
On module installation the following hooks can be registered, on the order view page:
displayAdminOrderTabLink
- for adding tab links for tab contentdisplayAdminOrderTabContent
- for adding tab content to Order pagedisplayAdminOrderMain
- for adding Order main informationdisplayAdminOrderSide
- displayed between Customer and Messages cards in the Order pagedisplayAdminOrderSideBottom
- for adding Order side informationdisplayAdminOrder
- displayed at the bottom of the Order pagedisplayAdminOrderTop
- displayed at the top of the Order pageactionGetAdminOrderButtons
- to display additional action buttons into the main buttons bar.And on the listing page:
displayOrderPreview
- displayed at the bottom of the order’s preview on the order’s listing page.These hooks are visualized in the picture below:
This tutorial has these sections: