Hiding Vendor Panel Tabs

Dear cs.cart compatriots,

I need to hide 3 last tabs from the vendor panel, them being:

Customers -> Vendor Administrators (Screenshot: http://i.imgur.com/HQOE9Z0.png)

Website -> Pages (Screenshot: http://i.imgur.com/VM2qpLv.png)

Vendors -> Vendors (Screenshot: http://i.imgur.com/cDwx63Q.png)

So my question, where/what must one edit to hide these tabs from vendor panel?

This will be the last time I bug the community about hiding vendor panel tabs!

All help dearly appreciated,

Many thanks.

You can disable specific controllers and modes for vendors in the following schema file

app/schemas/permissions/vendor_multivendor.php

It can be also extended with the addon

You can disable specific controllers and modes for vendors in the following schema file

app/schemas/permissions/vendor_multivendor.php

It can be also extended with the addon

I've been unable to locate any of the tabs i'm targeting in this file. Is there another place they might be?

I've been unable to locate any of the tabs i'm targeting in this file. Is there another place they might be?

For example, go to Customers -> Vendor administrators page. Check URL\

admin.php?dispatch=profiles.manage&user_type=V

It means that the used controller is profiles and mode is manage

Open the vendor_multivendor.php file, find the manage mode for the profiles controller and replace

                    'param_permissions' => array(
                        'user_type' => array(
                            'P' => false,
                        ),
                        'default_permission' => true,
                    ),
                    'condition' => array(
                        'user_type' => array(
                            'A' => array(
                                'operator' => 'and',
                                'function' => array('fn_check_permission_manage_profiles', 'A'),
                            ),
                            'V' => array(
                                'operator' => 'and',
                                'function' => array('fn_check_permission_manage_profiles', 'V'),
                            ),
                        )
                    ),

with

                    'param_permissions' => array(
                        'user_type' => array(
                            'P' => false,
                            'V' => false
                        ),
                        'default_permission' => true,
                    ),
                    'condition' => array(
                        'user_type' => array(
                            'A' => array(
                                'operator' => 'and',
                                'function' => array('fn_check_permission_manage_profiles', 'A'),
                            )
                        )
                    ),

Then clear cache and check the result

Thank you for the continued help.

I replaced the code as you stated & cleared cache but i'm getting this error now when loading vendor panel:

Parse error: syntax error, unexpected ';', expecting ')' in /home/nootfxic/public_html/app/schemas/permissions/vendor_multivendor.php on line 549

Now, more strange, even when I revert back to the default code in your message I am still getting the same error? This issue has me flustered, been trying to find the problem for best part of the day but no luck as of yet.

I've attached below my vendor_multivendor.php file that is giving this error, incase anyone would like to take a look.

/***************************************************************************
* *
* (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev *
* *
* This is commercial software, only users who have purchased a valid *
* license and accept to the terms of the License Agreement can install *
* and use this program. *
* *
****************************************************************************
* PLEASE READ THE FULL TEXT OF THE SOFTWARE LICENSE AGREEMENT IN THE *
* "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE. *
****************************************************************************/
return array(
'default_permission' => false,
'controllers' => array (
'auth' => array (
'permissions' => true,
),
'index' => array (
'permissions' => true,
),
'elf_connector' => array (
'permissions' => true,
),
'profiles' => array (
'modes' => array (
'update_cards' => array (
'permissions' => false
),
'delete_profile' => array (
'permissions' => false
),
'delete_card' => array (
'permissions' => false
),
'request_usergroup' => array (
'permissions' => false
),
'manage' => array (
'param_permissions' => array(
'user_type' => array(
'P' => false,
'V' => false
),
'default_permission' => true,
),
'condition' => array(
'user_type' => array(
'A' => array(
'operator' => 'and',
'function' => array('fn_check_permission_manage_profiles', 'A'),
)
)
),
'view_product_as_user' => array(
'permissions' => true,
),
'act_as_user' => array (
'permissions' => false,
'condition' => array(
'operator' => 'or',
'function' => array('fn_check_permission_act_as_user'),
),
)
),
'permissions' => true,
),
'companies' => array (
'modes' => array (
'add' => array (
'permissions' => false
),
'delete' => array (
'permissions' => false
),
'update_status' => array (
'permissions' => false
),
'm_activate' => array (
'permissions' => false
),
'm_disable' => array (
'permissions' => false
),
'm_delete' => array (
'permissions' => false
),
),
'permissions' => true,
),
'profile_fields' => array (
/*'modes' => array (
'manage' => array (
'permissions' => true
),
),*/
'permissions' => false,
),
'usergroups' => array (
/*'modes' => array (
'manage' => array (
'permissions' => true
),
'assign_privileges' => array (
'permissions' => array ('GET' => true, 'POST' => false),
),
'update_status' => array (
'permissions' => true,
),
),*/
'permissions' => false,
),
'sales_reports' => array (
'modes' => array(
'view' => array (
'permissions' => true,
),
'set_report_view' => array (
'permissions' => true,
),
),
'permissions' => false,
),
'categories' => array (
'modes' => array (
'delete' => array (
'permissions' => false
),
// Why .add was true ???
'add' => array (
'permissions' => false
),
'm_add' => array (
'permissions' => false
),
'm_update' => array (
'permissions' => false
),
'picker' => array (
'permissions' => true
),
),
'permissions' => array ('GET' => true, 'POST' => false),
),
'taxes' => array (
'modes' => array(
'update' => array(
'permissions' => array ('GET' => true, 'POST' => false),
),
'manage' => array(
'permissions' => array ('GET' => true, 'POST' => false),
),
),
'permissions' => false,
),
'image' => array (
'modes' => array(
'barcode' => array(
'permissions' => true,
),
'delete_image' => array(
'permissions' => true,
),
'thumbnail' => array(
'permissions' => true,
),
),
'permissions' => false,
),
'search' => array (
'modes' => array(
'results' => array(
'permissions' => true,
),
),
'permissions' => false,
),
'states' => array (
'modes' => array(
'manage' => array(
'permissions' => true,
),
),
'permissions' => false,
),
'countries' => array (
'modes' => array(
'manage' => array(
'permissions' => array ('GET' => true, 'POST' => false),
),
),
'permissions' => false,
),
'destinations' => array (
'modes' => array(
'update' => array(
'permissions' => array ('GET' => true, 'POST' => false),
),
'manage' => array(
'permissions' => array ('GET' => true, 'POST' => false),
),
),
'permissions' => false,
),
'localizations' => array (
/*'modes' => array(
'update' => array(
'permissions' => array ('GET' => true, 'POST' => false),
),
'manage' => array(
'permissions' => true,
),
),*/
'permissions' => false,
),
'languages' => array (
/*'modes' => array(
'manage' => array(
'permissions' => true,
),
),*/
'permissions' => false,
),
'product_features' => array (
'modes' => array(
'update' => array(
'permissions' => array ('GET' => true, 'POST' => false),
),
'manage' => array(
'permissions' => array ('GET' => true, 'POST' => false),
),
'groups' => array(
'permissions' => array ('GET' => true, 'POST' => false),
),
'get_feature_variants_list' => array(
'permissions' => true,
),
'get_variants_list' => array(
'permissions' => true,
),
'get_variants' => array(
'permissions' => array ('GET' => true, 'POST' => false),
)
),
'permissions' => false,
),
'statuses' => array (
/*'modes' => array(
'update' => array(
'permissions' => array ('GET' => true, 'POST' => false),
),
'manage' => array(
'permissions' => true,
),
),*/
'permissions' => false,
),
'currencies' => array (
'modes' => array(
'update' => array(
'permissions' => array ('GET' => true, 'POST' => false),
),
'manage' => array(
'permissions' => true,
),
),
'permissions' => false,
),
'exim' => array (
'modes' => array(
'export' => array(
'permissions' => true,
),
'import' => array(
'permissions' => true,
),
),
'permissions' => true,
),
'product_filters' => array (
'modes' => array(
'update' => array(
'permissions' => array ('GET' => true, 'POST' => false),
),
'manage' => array(
'permissions' => array ('GET' => true, 'POST' => false),
),
'delete' => array(
'permissions' => false,
),
),
'permissions' => true,
),
'orders' => array (
'modes' => array(
'details' => array(
'permissions' => true,
),
'delete' => array(
'permissions' => false,
),
'delete_orders' => array(
'permissions' => false,
),
'manage' => array(
'permissions' => true,
),
),
'permissions' => true,
),
'shippings' => array (
'permissions' => true,
),
'tags' => array (
'modes' => array(
'list' => array(
'permissions' => true,
),
),
'permissions' => false,
),
'pages' => array (
'modes' => array(
/*'m_add' => array(
'permissions' => false,
),
'm_update' => array(
'permissions' => false,
),*/
),
'permissions' => true,
),
'products' => array (
'modes' => array(
),
'permissions' => true,
),
'detail_features' => array (
'modes' => array(
),
'permissions' => true,
),
'product_options' => array (
'permissions' => true,
),
'promotions' => array (
'permissions' => false,
),
'shipments' => array (
'permissions' => true,
),
'attachments' => array (
'permissions' => true,
),
'block_manager' => array (
'permissions' => false,
),
'tools' => array (
'modes' => array (
'update_position' => array(
'param_permissions' => array (
'table' => array (
'images_links' => true,
)
)
),
'update_status' => array (
'param_permissions' => array (
'table' => array (
'shippings' => true,
'products' => true,
'product_options' => true,
'attachments' => true,
'product_files' => true,
'pages' => true,
//'users' => true,
/*'categories' => 'manage_catalog',
'states' => 'manage_locations',
'usergroups' => 'manage_usergroups',
'currencies' => 'manage_currencies',
'blocks' => 'edit_files',
'taxes' => 'manage_taxes',
'promotions' => 'manage_promotions',
'static_data' => 'manage_static_data',
'statistics_reports' => 'manage_reports',
'countries' => 'manage_locations',
'languages' => 'manage_languages',
'sitemap_sections' => 'manage_sitemap',
'localizations' => 'manage_locations',
'products' => 'manage_catalog',
'destinations' => 'manage_locations',
'product_options' => 'manage_catalog',
'product_features' => 'manage_catalog',
'payments' => 'manage_payments',
'product_filters' => 'manage_catalog',
'product_files' => 'manage_catalog'
*/
)
)
),
'cleanup_history' => array(
'permissions' => true
),
'view_changes' => array(
'permissions' => false
)
)
),
'logs' => array (
'permissions' => true,
),
'debugger' => array(
'permissions' => true,
),
'file_editor' => array(
'permissions' => true
)
),
'addons' => array (
'affiliate' => array(
'permission' => false,
),
'suppliers' => array(
'permission' => false,
),
'access_restrictions' => array(
'permission' => false,
),
'age_verification' => array(
'permission' => false,
),
'anti_fraud' => array(
'permission' => false,
),
'banners' => array(
'permission' => false,
),
'bestsellers' => array(
'permission' => false,
),
'customers_also_bought' => array(
'permission' => false,
),
'form_builder' => array(
'permission' => false,
),
'gift_registry' => array(
'permission' => false,
),
'google_analytics' => array(
'permission' => false,
),
'google_sitemap' => array(
'permission' => false,
),
'hot_deals_block' => array(
'permission' => false,
),
'newsletters' => array(
'permission' => false,
),
'blog' => array(
'permission' => false,
),
'quickbooks' => array(
'permission' => false,
),
'reward_points' => array(
'permission' => false,
),
'social_buttons' => array(
'permission' => false,
),
'sms_notifications' => array(
'permission' => false,
),
'store_locator' => array(
'permission' => false,
),
),
'export' => array(
'sections' => array(
'translations' => array(
'permission' => false,
),
'users' => array(
'permission' => false,
),
'features' => array(
'permission' => false,
),
),
'patterns' => array(
'google' => array(
'permission' => false,
),
),
),
'import' => array(
'sections' => array(
'translations' => array(
'permission' => false,
),
'orders' => array(
'permission' => false,
),
'users' => array(
'permission' => false,
),
'features' => array(
'permission' => false,
),
),
'patterns' => array(
),
),
);

Looks like extra parenthesis was added somewhere. Please PM me temporary FTP access so that we can check the issue

Just to update any readers, E-Com Labs has found the issue causing the error and fixed it, and also went out of their way to solve my original issue at hand.

We are dealing with nothing but the best here folks!! :)