Jump to content

Admin BO Tab problems


Recommended Posts

Good day,

 

I was having a bit of a problem with the admin back office tab. I have create a new module where upon installation a new tab is appended in the back office tabs. The part where the 'Catalog', 'Orders', 'Customer', etc are located. I can see the tab in the database inside the ps_tab table. 

 

Upon the installation of the module, I have this code snippet:
 

$tab = new Tab();
foreach(Language::getLanguages(false) as $lang){
$tab->name[(int) $lang['id_lang']] = 'Alipay';
}
$tab->class_name = 'Alipay';
$tab->module = 'alipay';
$tab->id_parent = 0;
$tab->add();

 

Link to comment
Share on other sites

Hi.. 

 

I'm trying to create a BO tab when the module is installed in prestashop back office. I have the codes above but doesn't seem to be working. Is it possible that when a module is installed a corresponding BO tab will be created? 
 

Thanks!

Link to comment
Share on other sites

×
×
  • Create New...