Claudia M Posted January 20, 2020 Share Posted January 20, 2020 What file would I edit to rearrange the tabs in the Product file in admin. I don't use Digital, Translations, Options so I'd like for them to be at the end. Thanks for any and all help!!! Link to comment Share on other sites More sharing options...
bsmither Posted January 21, 2020 Share Posted January 21, 2020 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 More sharing options...
Claudia M Posted January 21, 2020 Author Share Posted January 21, 2020 Thanks Brian. I think I'll change the priority. Seems easiest. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.