Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Hiding Vendor Menu Items Rate Topic   - - - - -

 
  • maverick1
  • Newbie
  • Members
  • Join Date: 09-Oct 17
  • 4 posts

Posted 09 October 2017 - 03:58 PM #1

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  :-(



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 14,923 posts

Posted 10 October 2017 - 06:20 AM #2

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:

<?php

$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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • maverick1
  • Newbie
  • Members
  • Join Date: 09-Oct 17
  • 4 posts

Posted 10 October 2017 - 03:48 PM #3

That worked perfectly!

 

Thanks so much.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 14,923 posts

Posted 11 October 2017 - 06:04 AM #4

You are welcome! :)


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия