- Posts: 640
- Thank you received: 16
Remove "Vendor Account" Button frontend HikaMarket
- PeterChain
-
Topic Author
- Offline
Less
More
13 years 6 months ago - 13 years 6 months ago #102258
by PeterChain
Remove "Vendor Account" Button frontend HikaMarket was created by PeterChain
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
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: 13 years 6 months ago by PeterChain.
Please Log in or Create an account to join the conversation.
13 years 6 months ago #102274
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Remove "Vendor Account" Button frontend HikaMarket
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,
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.
Please Log in or Create an account to join the conversation.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
13 years 6 months ago #102277
by PeterChain
Replied by PeterChain on topic Remove "Vendor Account" Button frontend HikaMarket
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.
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.
13 years 6 months ago #102312
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Remove "Vendor Account" Button frontend HikaMarket
Hi,
Please edit the file: administrator/com_hikamarket/types/market_acl.php and replace the code
By
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,
Please edit the file: administrator/com_hikamarket/types/market_acl.php and replace the code
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);
}
}
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);
}
if(empty($this->acl[$name]['edit']['plugin']))
unset($this->acl[$name]['edit']['plugin']);
}
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.
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.050 seconds