Warning: You are browsing the documentation for PrestaShop 1.7, which is outdated.
You might want to read an updated version of this page for the current version, PrestaShop 8. Read the updated 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 content
displayAdminOrderTabContent- for adding tab content to Order page
displayAdminOrderMain- for adding Order main information
displayAdminOrderSide- displayed between Customer and Messages cards in the Order page
displayAdminOrderSideBottom- for adding Order side information
displayAdminOrder- displayed at the bottom of the Order page
displayAdminOrderTop- displayed at the top of the Order page
actionGetAdminOrderButtons- 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: