Admin controllers are useful to create a new tab. However, if you need to alter existing tabs, you will need to use hooks in the back office. In this section, we will use only some of the hooks available. It is recommended that you read the exhaustive list of hooks at the end of the book to see all the various possibilities.
To do so, you just have to register the hook in the constructor of your main class, (
// Register hooks if (!$this->registerHook('displayProductTabContent') || !$this->registerHook('displayBackOfficeHeader') || !$this->registerHook('displayAdminProductsExtra') || !$this->registerHook('ModuleRoutes')) return false;
You will then create the corresponding method using the same controller system as other hooks: