Jump to content

new sub-menu item under the "catalog" menu in BO via module ?


jemmeli

Recommended Posts

hello

 

I am wondering how can I create a new sub-menu item in back-office, for example under the "catalog" menu item how can I add new sub item named "texture" is it possible to accomplish this via a module developpment under prestashop 1.5 ?

Edited by jemmeli (see edit history)
Link to comment
Share on other sites

I found the solution it is like this :

 


public function install()
   {
       // Création de l'onglet
       $parent_tab = new Tab();
       $parent_tab->name = 'Passerelle Volume';
       $parent_tab->class_name = 'AdminMainVolume';
       $parent_tab->id_parent = 0;
       $parent_tab->module = $this->name;
       $parent_tab->add();

       // Sous menu de l'onglet ci-dessus
       $tab = new Tab();
       $tab->name = 'Lien menu 1';
       $tab->class_name = 'AdminVolume';
       $tab->id_parent = $parent_tab->id;
       $tab->module = $this->name;
       $tab->add();

       if (!parent::install())
           return false;

       return true;
   }

Edited by jemmeli (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...