Jump to content

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

Hiding Vendor Menu Items Rate Topic   - - - - -

 
  • Adr
  • Advanced Member
  • Members
  • Join Date: 30-Jan 18
  • 102 posts

Posted 22 September 2020 - 01:36 PM #61

Its working!

Thank you!

 

 

 

I left you a private message.

A



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

Posted 23 September 2020 - 04:46 AM #62

You are welcome!


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Angeltown
  • Senior Member
  • Members
  • Join Date: 05-Feb 15
  • 152 posts

Posted 23 September 2020 - 10:10 AM #63

Is there a way to restrict vendors to specific export layouts for products & orders?

 

In other words, I setup export layouts specifically for our vendors for products & orders. Can I remove all other layout options from the screen so they cannot select a different one or customize it? 


CS-Cart & CS-Cart Multi-Vendor 4.11.5


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

Posted 23 September 2020 - 01:15 PM #64

There is no easy way to do it. Code changes are required


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Angeltown
  • Senior Member
  • Members
  • Join Date: 05-Feb 15
  • 152 posts

Posted 23 September 2020 - 01:23 PM #65

I understand - thank you!


CS-Cart & CS-Cart Multi-Vendor 4.11.5


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12076 posts

Posted 14 November 2020 - 07:37 PM #66

We've developed an easy to use addon tha allows you to hide selected menus, tabs and fields from Vendors.  
 
It can also optionally modify email fields for:
  + From customer to Vendor - hide customer email/phone fields, change from/reply-to email headers to be from site
  + From Vendor to Customer - change From/Reply-to to Site email address (TBD - change Vendor's email/phone to site's email/phone).
 
Purchase site: https://ez-ms.com/ez...dor-fields.html
Documentation: https;//ez-ms.com/docs/ez_vendor_fields.pdf
Marketplace: https://marketplace....dor-fields.html

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • memel
  • Senior Member
  • Members
  • Join Date: 29-May 17
  • 293 posts

Posted 14 November 2020 - 08:08 PM #67

We've developed an easy to use addon tha allows you to hide selected menus, tabs and fields from Vendors.  
 
It can also optionally modify email fields for:
  + From customer to Vendor - hide customer email/phone fields, change from/reply-to email headers to be from site
  + From Vendor to Customer - change From/Reply-to to Site email address (TBD - change Vendor's email/phone to site's email/phone).
 
Purchase site: https://ez-ms.com/ez...dor-fields.html
Documentation: https;//ez-ms.com/docs/ez_vendor_fields.pdf
Marketplace: https://marketplace....dor-fields.html

 

Thanks. What we need. Just purchased.



 
  • crazyshark20
  • Junior Member
  • Members
  • Join Date: 19-Aug 09
  • 346 posts

Posted 16 March 2021 - 11:48 AM #68

Hi can we use permission false only vendor user_id=10

 

app/schemas/permissions/vendor_multivendor.php

 

i write this but cant work

 

$schema['controllers']['sales_reports']['modes']['view']['permissions']['user_id'][10] = false;


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

Posted 16 March 2021 - 01:58 PM #69

Try something like

if (Tygh::$app['session']['auth']['user_id'] == 10) {
    $schema['controllers']['sales_reports']['modes']['view']['permissions'] = false;
}

I am not sure that it will work since this schema is cached


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • crazyshark20
  • Junior Member
  • Members
  • Join Date: 19-Aug 09
  • 346 posts

Posted 16 March 2021 - 03:02 PM #70

Thanks ecomlabs its work



 
  • crazyshark20
  • Junior Member
  • Members
  • Join Date: 19-Aug 09
  • 346 posts

Posted 16 March 2021 - 08:19 PM #71

How can we hide vendor_communication. Thanks a lot.



 
  • nmb
  • Member
  • Members
  • Join Date: 14-Aug 07
  • 136 posts

Posted 16 March 2021 - 08:50 PM #72

Go to Message center addon.

Uncheck `Vendor-to-admin communication`.



 
  • crazyshark20
  • Junior Member
  • Members
  • Join Date: 19-Aug 09
  • 346 posts

Posted 16 March 2021 - 08:52 PM #73

if specific vendor user_id like this i found thanks nmb
 
My example vendor user_id = 10
 
app\addons\vendor_communication\schemas\permissions\vendor_multivendor.post.php
 
if (Tygh::$app['session']['auth']['user_id'] == 10) {
    $schema['controllers']['vendor_communication']['permissions'] = false;
}
 
 
if different way i want to hear thanks.


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

Posted 17 March 2021 - 05:56 AM #74

 

if specific vendor user_id like this i found thanks nmb
 
My example vendor user_id = 10
 
app\addons\vendor_communication\schemas\permissions\vendor_multivendor.post.php
 
if (Tygh::$app['session']['auth']['user_id'] == 10) {
    $schema['controllers']['vendor_communication']['permissions'] = false;
}
 
 
if different way i want to hear thanks.

 

 

So does it work?


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • shanower
  • Advanced Member
  • Members
  • Join Date: 27-Jul 19
  • 73 posts

Posted 18 May 2021 - 08:54 PM #75

Anyone know how to hide "Pages" menu from vendors but not the "Blog" menu?

 

When I try the following code it not only hide pages but also blog menu.

$schema['controllers']['pages']['permissions'] = false; 


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12076 posts

Posted 18 May 2021 - 09:51 PM #76

 

Anyone know how to hide "Pages" menu from vendors but not the "Blog" menu?

 

When I try the following code it not only hide pages but also blog menu.

$schema['controllers']['pages']['permissions'] = false; 

See https://forum.cs-car...ndpost&p=333501


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


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

Posted 19 May 2021 - 04:30 AM #77

 

Anyone know how to hide "Pages" menu from vendors but not the "Blog" menu?

 

When I try the following code it not only hide pages but also blog menu.

$schema['controllers']['pages']['permissions'] = false; 

 

Try

$schema['controllers']['pages'] = [
    'modes' => [
         'manage' => [
                   'param_permissions' => [
                        'page_type' => [
                            'B' => true,
                        ],
                        'default_permission' => false,
                    ]
        ],
    ],
    'permissions' => true
];

(!) Not tested


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • shanower
  • Advanced Member
  • Members
  • Join Date: 27-Jul 19
  • 73 posts

Posted 19 May 2021 - 12:25 PM #78

Hi!

 

I tested but it didnt worked. When I use the code it an error:

Message
Use of undefined constant permissions - assumed 'permissions' (this will throw an Error in a future version of PHP)

Error at
app/addons/my_changes/schemas/permissions/vendor_multivendor.post.php, line: 40

I thought that maybe if unset the pages firstly and after set blog it would work, but worked also.

$schema['controllers']['pages']['modes']['manage']['permissions'] = false;
$schema['controllers']['pages']['modes']['manage']['param_permissions']['page_type']['B'] = true; 


 
  • shanower
  • Advanced Member
  • Members
  • Join Date: 27-Jul 19
  • 73 posts

Posted 19 May 2021 - 01:27 PM #79

 

Hi!

 

I tested but it didnt worked. When I use the code it an error:

Message
Use of undefined constant permissions - assumed 'permissions' (this will throw an Error in a future version of PHP)

Error at
app/addons/my_changes/schemas/permissions/vendor_multivendor.post.php, line: 40

I thought that maybe if unset the pages firstly and after set blog it would work, but worked also.

$schema['controllers']['pages']['modes']['manage']['permissions'] = false;
$schema['controllers']['pages']['modes']['manage']['param_permissions']['page_type']['B'] = true; 

 

I made a mistake, what I would say in the last line is that the last code also didnt worked.



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

Posted 19 May 2021 - 01:28 PM #80

I have corrected the code in my post. Please try


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)