Jump to content

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

How To Hide Vendor->Vendor Tab In Vendor Panel Rate Topic   - - - - -

 
  • cscartfan
  • Advanced Member
  • Members
  • Join Date: 26-Jul 16
  • 101 posts

Posted 07 November 2016 - 02:50 AM #1

Excuse me for another relatively simply question, but what must I edit to hide the Vendors->Vendor tab in vendor panel? In other words, how can I disable the dropdown and make the "vendors" tab be a button linking directly to Account Balance? Here's a reference screenshot as to what i'm referring to: (http://imgur.com/Tzkv9BW)

 

Also, in regards to the same area, on vendor panel on the "Products" tab I want to disable the dropdown, as their is only 1 item, so I can set the button to load directly to Products page. Reference screenshot: (http://imgur.com/C7zBF9O)

 

Additionally, on 'Customers tab' I want to disable the dropdown and make link directly to "Customers" page. As their is no use for the Vendor Administrators tab to display for vendors. Reference screenshot (http://imgur.com/Oljcl0P)

 

Again these changes must be only for vendor panel, not admin panel.

 

Many thanks in advance!



 
  • screenimages
  • Senior Member
  • Members
  • Join Date: 17-Jul 14
  • 154 posts

Posted 08 November 2016 - 06:10 PM #2

It can be done with CSS, as long as you have a unique ID in the vendor admin:

http://forum.cs-cart...dy-class-or-id/

 

Then it's just something like this in your stylesheet:

#vendorspage li.vendors {display: none;}

#vendorspage = this is the ID we've added to this page, so that we're only applying this change to the vendor admin.

li.vendors = the part of the dropdown menu you want to omit (in this case a list item with the class of "vendors")

display: none = hides it from display



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

Posted 09 November 2016 - 08:39 AM #3

app/schemas/permissions/vendor_multivendor.php

 

add

                'manage' => array (
                    'permissions' => false
                )

after the following code:

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

Then clear cache and check result


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 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)


 
  • cscartfan
  • Advanced Member
  • Members
  • Join Date: 26-Jul 16
  • 101 posts

Posted 10 November 2016 - 12:03 AM #4

Ahh, here I was scratching my head on this and your reply pops up :)

 

E-com labs code worked like a charm. 

 

Thank you guys both for the help, very much appreciated!!



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

Posted 10 November 2016 - 07:48 AM #5

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 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)


 
  • screenimages
  • Senior Member
  • Members
  • Join Date: 17-Jul 14
  • 154 posts

Posted 10 November 2016 - 07:59 PM #6

Now I'm curious - what is the code doing that eCom has posted doing?



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

Posted 11 November 2016 - 07:28 AM #7

Now I'm curious - what is the code doing that eCom has posted doing?

 

It declines all requests (GET, POST) made by vendors to the companies.manage dispatch


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 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)


 
  • screenimages
  • Senior Member
  • Members
  • Join Date: 17-Jul 14
  • 154 posts

Posted 20 November 2016 - 09:42 PM #8

Brilliant! Thanks…



 
  • proodie
  • Advanced Member
  • Members
  • Join Date: 07-Dec 19
  • 65 posts

Posted 23 March 2022 - 03:26 AM #9

I edit this setting

https://prnt.sc/UwahfQ8K2s_8

still I am unable to see design tab in vendor panel