Remove "Vendor Account" Button frontend HikaMarket

  • Posts: 634
  • Thank you received: 16
11 years 6 months ago #102258

I don't want my vendors to have access to their Vendor Account information form the Frontend with Hikamarket.

In the configuration I see I can activate / deactivate other options, but not this one. How can I permanently deactivate this?

*** DON'T HURRY FOR THIS *** I build my own control panel from the original cpanel.php

Last edit: 11 years 6 months ago by PeterChain.

Please Log in or Create an account to join the conversation.

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
11 years 6 months ago #102274

Hi,

The HikaMarket front-end dashboard contains 4 buttons, each button is a "group" in the HikaMarket ACL.
If you remove the right "Vendor / Edit", the first button won't be display.
This option can be set in the global configuration of HikaMarket, the vendors with the "inherit" right will all use the same configuration (no override it).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 634
  • Thank you received: 16
11 years 6 months ago #102277

It sounds good, but please check that this works with the Vendor too. Each time I save the setting the vendor gets back to activated, maybe because of the Plugin CheckBox being subordinated to the edit branch.

It works fine for the other buttons, but not for the Vendor.

The following user(s) said Thank You: Jerome

Please Log in or Create an account to join the conversation.

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
11 years 6 months ago #102312

Hi,

Please edit the file: administrator/com_hikamarket/types/market_acl.php and replace the code

		foreach($categories as $name => $data) {
			if(isset($this->acl[$name]) && isset($this->acl[$name]['edit']['plugin']) && !empty($data)) {
				$this->acl[$name]['edit']['plugin'] = array_merge($this->acl[$name]['edit']['plugin'], $data);
			}
		}
By
		foreach($categories as $name => $data) {
			if(isset($this->acl[$name]) && isset($this->acl[$name]['edit']['plugin']) && !empty($data)) {
				$this->acl[$name]['edit']['plugin'] = array_merge($this->acl[$name]['edit']['plugin'], $data);
			}
			if(empty($this->acl[$name]['edit']['plugin']))
				unset($this->acl[$name]['edit']['plugin']);
		}
At this moment, the empty sub group "plugin" would not be display under "vendor / edit".
I am working on it in order to improve it, I am not really satisfy of this patch but if I don't find something better, this patch would be include in the next release.
But, what is sure is that, the problem for the vendor edit button will be fix (and with little patch, it will too).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.058 seconds
Powered by Kunena Forum