Jump to content

 

Adr

Member Since 30 Jan 2018
Offline Last Active Jul 02 2021 10:42 AM
-----

Posts I've Made

In Topic: Hiding Vendor Menu Items

22 September 2020 - 01:36 PM

Its working!

Thank you!

 

 

 

I left you a private message.

A


In Topic: Hiding Vendor Menu Items

22 September 2020 - 08:01 AM

 

As temporary solution, open the app/addons/vendor_plans/controllers/backend/companies.post.php file and replace

 

    Registry::set('navigation.tabs.plan', array(
        'title' => __('vendor_plans.plan'),
        'js' => true,
    ));
 
with
 
    /*Registry::set('navigation.tabs.plan', array(
        'title' => __('vendor_plans.plan'),
        'js' => true,
    ));*/

 

Hi!

Thank you for your help. 

It in fact hides this tab, but it also hides it from admin panel, but it wlod be good if admin could see what vendor plan is .

How can i modifie it so it will be visible for admin, but not for vendor?

Thank you,

A


In Topic: Hiding Vendor Menu Items

21 September 2020 - 05:15 PM

In the settings of the Vendor plans module disable the "Allow vendors to change plan" option

 

I manage to add companies.balance to top administration menu https://prnt.sc/ul9x8g

by adding :

$schema['top']['administration']['items']['vendor_accounting'] = array(
    'href' => 'companies.balance', 
    'position' => 150,
);
 
to menu_multivendor.php  
 
but it wont be visible if i have //$schema['controllers']['companies']['modes']['balance']['permissions'] = false;  in vendor_multivendor_post.php via my_changes
 
is it possible to hide it in central menu the same time being viisble in top administration menu?

In Topic: Hiding Vendor Menu Items

21 September 2020 - 03:42 PM

In the settings of the Vendor plans module disable the "Allow vendors to change plan" option

Hi,

Thank you for replying.

I have already tried this solution but its not working : https://prnt.sc/ul71yl

 

I'm also trying to add vendor administrators (profiles.manage&user_type=V) , accounting (companies.balance) and vendors>vendors (companies.manage) to vendor administrator menu.

 

And here's an additional question. Can every vendor administrator change details of the company or delete another vendor administrator within the same vendor?

 

I was trying via vendor_multivendor_post https://prnt.sc/ul821v and even in menu_multivendor.php https://prnt.sc/ul82kk

 

but obviously I'm doing it wrong. 

Can anyone please tell me what is the code structure to add this to my_changes ??

Thank you


In Topic: Hiding Vendor Menu Items

20 September 2020 - 04:48 PM

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

Hi  there.

 

Can you pplease help me hide  "plan tab" in vendors >vendors for vendors only   https://prnt.sc/ukmbrr

 

thank you,

A