Editing Vendor Permissions

Which files need modification to edit the vendor page? (website.com/Vendor.php)



I want to remove features such as adding pages/categories/files etc…

Permissions can be corrected in the following file:



app\schemas\permissions\vendor_multivendor.php

So for example, what do I do to get rid of the Content menu from the vendor page so that they can't create new pages, or get rid of the file manager so they can't upload/view files?

For example, change



'pages' => array (
'modes' => array(
/*'m_add' => array(
'permissions' => false,
),
'm_update' => array(
'permissions' => false,
),*/
),
'permissions' => true,
),




to



'pages' => array (
'permissions' => false,
),




Clear the cache and check the result

works like a charm. THank you again!

Glad to hear that!

I have one more question: Which one do I edit to add “Apply for Vendor Account” on the vendor.php page (login page)? I'm guessing its not part of a theme. I looked in design/backend but I was unable to locate a template.

[quote name='multiles' timestamp='1438371809' post='225170']

I have one more question: Which one do I edit to add “Apply for Vendor Account” on the vendor.php page (login page)? I'm guessing its not part of a theme. I looked in design/backend but I was unable to locate a template.

[/quote]



design\backend\templates\views\auth\login_form.tpl



{if $smarty.const.ACCOUNT_TYPE == 'vendor'}
your code here
{/if}




do not forget to clear cache then

This is my login_form.tpl and doesn't have what you said. I do not want to change the administration panel too. How do I add “Apply for vendor” under “forgot Password?” in vendor.php?


```php





{$settings.Company.company_name|truncate:40:'...':true}


{__("administration_panel")}



{__("email")}:



{__("password")}:




{include file="buttons/sign_in.tpl" but_name="dispatch[auth.login]" but_role="button_main" tabindex="3"}
{__("forgot_password_question")}



```

Thank you.

Oh, I understand what you are saying now. Nevermind about the post above. Thank you

So I added this:


{if $smarty.const.ACCOUNT_TYPE == 'vendor'}
{__("apply_for_vendor_account")}
{/if}


but When I click it, it says I must be logged in first to use this resource. How do I correct this issue?

Please use



{if $smarty.const.ACCOUNT_TYPE == 'vendor'}
{__("apply_for_vendor_account")}
{/if}




And do not forget to clear cache

It works flawlessly; thank you. Can you also tell me where the templates are for adding a product? I would like to remove some features and get rid of duplicate options such as images (for example, there are options to add images in the tab “images” and in the general tab.)

for the vendor page and the admin page.

[quote name='multiles' timestamp='1438771364' post='225719']

It works flawlessly; thank you. Can you also tell me where the templates are for adding a product? I would like to remove some features and get rid of duplicate options such as images (for example, there are options to add images in the tab “images” and in the general tab.)

[/quote]



[color=#282828][font=arial, verdana, tahoma, sans-serif]For the required changes please change the following template:[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]design/backend/templates/views/products/update.tpl[/font][/color]

Thank you.



Another question:

How I do add features and shipping options when I create products? I can only edit those elements AFTER I create them. Is there any way to make it so that I can edit it as I create it?

Try the following solution. (!) Not tested



Open the app/controllers/backend/products.php file and replace:



// [Page sections]
Registry::set('navigation.tabs', array (
'detailed' => array (
'title' => __('general'),
'js' => true
),
'images' => array (
'title' => __('images'),
'js' => true
),
'seo' => array(
'title' => __('seo'),
'js' => true
),
'qty_discounts' => array (
'title' => __('qty_discounts'),
'js' => true
),
'addons' => array (
'title' => __('addons'),
'js' => true
),
));
// [/Page sections]




with



// [Page sections]
$tabs = array (
'detailed' => array (
'title' => __('general'),
'js' => true
),
'images' => array (
'title' => __('images'),
'js' => true
),
'seo' => array(
'title' => __('seo'),
'js' => true
),
'qty_discounts' => array (
'title' => __('qty_discounts'),
'js' => true
),
'addons' => array (
'title' => __('addons'),
'js' => true
),
'shippings' => array (
'title' => __('shipping_properties'),
'js' => true
),
);

list($product_features, $features_search) = fn_get_paginated_product_features(array(), $auth, array(), DESCR_SL);
if (!empty($product_features)) {
$tabs['features'] = array(
'title' => __('features'),
'js' => true
);
}
Registry::set('navigation.tabs', $tabs);
// [/Page sections]

great tips

Tahnk you. I also added


'options' => array (
'title' => __('options'),
'js' => true
),




But the tab is empty. What can I do to fix that?

[quote name='multiles' timestamp='1439665408' post='226853']

Tahnk you. I also added


'options' => array (
'title' => __('options'),
'js' => true
),




But the tab is empty. What can I do to fix that?

[/quote]



Custom controller is used to add product options to the database. It means that this controller should receive product_id in the request parameters. So you cannot add option on the “Add product” page