How To Hide 'administration Tab' On Vendor Panel

Hello,

Does anyone know where and what must be edited to hide the 'administration' tab on the vendor panel? Here's a reference screenshot with the administration tab circled: http://imgur.com/a/pYFrU ,

Your helps much appreciated,

thank's in advance.

Several ways to do it. But the essence is that you want to change the "navigation' template array by deleting the entry. It can be done via hooks or pre controllers.

app/schemas/menu/menu_multivendor.php

Add

if (Registry::get('runtime.company_id')) {
unset($schema['top']['administration']);
}

before the following line:

return $schema;

Of course, it is better to extend schemas with addons


Of course, it is better to extend schemas with addons

Or use a hook to adjust the schema at runtime.

app/schemas/menu/menu_multivendor.php

Add

if (Registry::get('runtime.company_id')) {
unset($schema['top']['administration']);
}

before the following line:

return $schema;

Of course, it is better to extend schemas with addons

Several ways to do it. But the essence is that you want to change the "navigation' template array by deleting the entry. It can be done via hooks or pre controllers.

Thank's fellas! The code provided by E-com labs works like a charm.

Many thanks! :grin: