Jump to content

Rearrange Product Tabs in Admin


Claudia M

Recommended Posts

In the admin script file /sources/products.index.inc.php, starting at about line 633, look for instances of $GLOBALS['main']->addTabControl();.

We see that the first two instances are for the General and Description tabs.

A tab could be added to the group if translating a product for Search Engines. But skip this unless translating.

Then, near line 681, we see that a group of five tabs are added. Keep going and you will find the rest.

You can move these statements around if you want, but that might get confusing.

You can also edit each instance by making the following change:

For example, if you want to move the Options tab to the end, then change the priority:

From:
$GLOBALS['main']->addTabControl($lang['catalogue']['title_options'], 'Options');

To:
$GLOBALS['main']->addTabControl($lang['catalogue']['title_options'], 'Options',null,null,false,'_self',99);

The 99 is the tab's priority and makes this appear at the end. If other tabs have the same priority, they will get listed in order of having been added, but after other tabs having a lesser number.

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...