Hiding Vendor Menu Items

Hi,

I'm trying to hide 3 menu items from the vendor admin panel. Specifically:

- Products > Features

- Products > Filters

- Customers > Customers

I know that the modifications need to be made in app/schemas/permissions/vendor_multivendor.php

But I'm not that great at PHP and I'm just not sure what or how to modify :-(

You can enable the My changes module and create the app/addons/my_changes/schemas/permissions/vendor_multivendor.post.php file with the following content:

$schema[‘controllers’][‘product_features’][‘modes’][‘manage’][‘permissions’] = false;
$schema[‘controllers’][‘product_filters’][‘modes’][‘manage’][‘permissions’] = false;
$schema[‘controllers’][‘profiles’][‘modes’][‘manage’][‘param_permissions’][‘user_type’][‘C’] = false;

return $schema;

Do not forget to clear cache before checking the result

That worked perfectly!

Thanks so much.

You are welcome! :)

What is the code for product categories? Vendors don't need to see those if they can't add or change them.

I think you have a problem with your configuration on your localhost that is causing confusion for redirects. I.e. I would look at your "domain is mapped" configuration.

What is the code for product categories? Vendors don't need to see those if they can't add or change them.

Use the same algorithm but for the "categories" controller and corresponding modes

When the install script completes, it redirects to the usl with "/admin.php" applied. It uses whatever protocol (http or https) was used to launch the install script. From your earlier descriptions it seems you are either getting a permission issue on admin.php or your environment is not allowing the redirect.

Not clear why install script would be doing anything with block_statuses and a SELECT would not be trying to SET any value.

Suggest you contact helpdesk. It is not an error that I see nor have seen reported. Hence it will take detailed review of yoru database and server environment.

You can enable the My changes module and create the app/addons/my_changes/schemas/permissions/vendor_multivendor.post.php file with the following content:

$schema[‘controllers’][‘product_features’][‘modes’][‘manage’][‘permissions’] = false;
$schema[‘controllers’][‘product_filters’][‘modes’][‘manage’][‘permissions’] = false;
$schema[‘controllers’][‘profiles’][‘modes’][‘manage’][‘param_permissions’][‘user_type’][‘C’] = false;

return $schema;

Do not forget to clear cache before checking the result

THANK YOU for this.

Question: Is it possible to do the same in admin for specific Administrators User Groups? We have several levels of support staff and we really need to do better in showing them only the content they need.

THANK YOU for this.

Question: Is it possible to do the same in admin for specific Administrators User Groups? We have several levels of support staff and we really need to do better in showing them only the content they need.

You can associate any controller or mode with permissions in the following schema

app/schemas/permissions/admin.php

It can be also extended with addons.

You can associate any controller or mode with permissions in the following schema

app/schemas/permissions/admin.php

It can be also extended with addons.

thank you!

That's

You can enable the My changes module and create the app/addons/my_changes/schemas/permissions/vendor_multivendor.post.php file with the following content:

$schema[‘controllers’][‘product_features’][‘modes’][‘manage’][‘permissions’] = false;
$schema[‘controllers’][‘product_filters’][‘modes’][‘manage’][‘permissions’] = false;
$schema[‘controllers’][‘profiles’][‘modes’][‘manage’][‘param_permissions’][‘user_type’][‘C’] = false;

return $schema;

Do not forget to clear cache before checking the result

This affects both admin and vendor's panel - no one can see the restricted area anymore. We need it only for vendor's panel, how to achieve that ?

This affects both admin and vendor's panel - no one can see the restricted area anymore. We need it only for vendor's panel, how to achieve that ?

Looks like vendor is selected at the top of the page in your case. Just switch to All vendors to see all menu items

Looks like vendor is selected at the top of the page in your case. Just switch to All vendors to see all menu items

I don't really understand your question. What I want to achieve is to hide those menus from vendor's panel only while I need to see it as a store owner in admin area.

I don't really understand your question. What I want to achieve is to hide those menus from vendor's panel only while I need to see it as a store owner in admin area.

I understand. And the mentioned code hides menu items for vendors only. But if vendor is selected in the admin panel, menu items are also hidden

I understand. And the mentioned code hides menu items for vendors only. But if vendor is selected in the admin panel, menu items are also hidden

Now I understand, thanks.

I don't really understand your question. What I want to achieve is to hide those menus from vendor's panel only while I need to see it as a store owner in admin area.

Think of it this way....

When you select a vendor at the upper left in your admin panel, you ware essentially "acting on behalf of" that vendor as an admin. I.e. any info or changes should be specific to that vendor only.

Cs-cart MV is far to be mature software! cs-cart is adding Plus and Enterprise but the standard solution has a lot of bugs and problems !

For example if you want to manage Vendors groups you must upgrade to plus :))) ! You buy MV to manage vendors but you can`t setup permission group for them ! I don`t understand cs-cart method !

You can enable the My changes module and create the app/addons/my_changes/schemas/permissions/vendor_multivendor.post.php file with the following content:

$schema[‘controllers’][‘product_features’][‘modes’][‘manage’][‘permissions’] = false;
$schema[‘controllers’][‘product_filters’][‘modes’][‘manage’][‘permissions’] = false;
$schema[‘controllers’][‘profiles’][‘modes’][‘manage’][‘param_permissions’][‘user_type’][‘C’] = false;

return $schema;

Do not forget to clear cache before checking the result

Great! Can we add Locations to that?