Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding new tab in Product Admin page like Features Tab, Attributes Tab etc. in Prestashop Version 1.5.3

I would like to add a new tab in Product Admin page like Features Tab, Attributes Tab etc. in PS Version 1.5.x with a custom module. I am adding this tab to the product edit page so that I can add option to upload product video to the admin.

Here is the screenshot of what I am trying to achieve:

enter image description here

Edit

I found a solution here: http://blog.belvg.com/how-to-create-a-custom-product-tab-in-prestashop.html

like image 908
Harish Anchu Avatar asked Apr 08 '13 07:04

Harish Anchu


1 Answers

you will need to create a module that hooks to displayAdminProductsExtra.

displayAdminProductsExtra - this is hook for additional product tab,

in your module you have to register this hook in the install function:

!$this->registerHook('displayAdminProductsExtra')

then you have to create function with this hook:

    public function hookDisplayAdminProductsExtra($params) {
     return $this->display(__FILE__, 'tab-body.tpl');
}

and that's all..

like image 166
Manik Avatar answered Oct 21 '22 20:10

Manik