Prestashop Add New Tab On Create Product Page in Prestashop Admin

Prestashop is a rich shopping cart and easy to customize. If you are developing a prestashop module or tring to develop some customize functionality, you would need to assign an additional tab at product creation page in prestashop admin. The universal path to create a product in prestashop admin is Admin -> Catalog -> Create a Product . 

For this prestashop has hook facility, You need to register your hook first. Let's assume you are developing a module name MyModule.

go to /module/mymodule/mymodule.php and in your Install() function create this hook.

public function install() {

if(!parent::install()){
    return false;
}        
        
if (!$this->registerHook('displayAdminProductsExtra')) {
return false;
}

}

add another function

public function hookDisplayAdminProductsExtra($params) {
    return $this->display(dirname(__FILE__), '/views/templates/hook/my_account_hook_extras.tpl');
}

Put your extra hook content in .tpl file you have just assigned in above function. 

If you need any help, feel free to post your comment here.