[Skip to main content](#vessel-content)

#   User Access / Display of control panel

##

- **[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")**
- [![earmaster's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35023-earmaster "View earmaster's Profile") Topic Author
- [ Offline](/forum/user/35023-earmaster)

Less More

- Posts: 137
- Thank you received: 2
-
-

11 years 10 months ago -  11 years 10 months ago [\#185588](#185588) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  *[User Access / Display of control panel](/forum/33-customers/874071-user-access-display-of-control-panel#185588 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi!  I have two groups of users, resellers and affiliates, each have their own Joomla group, my issue is that I don't want resellers to be able to &quot;activate&quot; the affiliate program, i.e I want to disable the &quot;Affiliate Program&quot; view in the User control panel for any user logged in as a &quot;Reseller&quot;  I have tried to disable access through HikaShop configuration -&gt; Access Level. but this doesn't seem to do anything.  This is purely front-end where I don't want users/customers from the Reseller group to see the Affiliate Program")* was created by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.10

Hi!

I have two groups of users, resellers and affiliates, each have their own Joomla group, my issue is that I don't want resellers to be able to "activate" the affiliate program, i.e I want to disable the "Affiliate Program" view in the User control panel for any user logged in as a "Reseller"

I have tried to disable access through HikaShop configuration -&gt; Access Level. but this doesn't seem to do anything.

This is purely front-end where I don't want users/customers from the Reseller group to see the Affiliate Program

Last edit: 11 years 10 months ago by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile"). Reason: Updated subject

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzQwNzEtdXNlci1hY2Nlc3MtZGlzcGxheS1vZi1jb250cm9sLXBhbmVsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 10 months ago [\#185591](#185591) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[User Access / Display of control panel](/forum/33-customers/874071-user-access-display-of-control-panel#185591 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi!  I have two groups of users, resellers and affiliates, each have their own Joomla group, my issue is that I don't want resellers to be able to &quot;activate&quot; the affiliate program, i.e I want to disable the &quot;Affiliate Program&quot; view in the User control panel for any user logged in as a &quot;Reseller&quot;  I have tried to disable access through HikaShop configuration -&gt; Access Level. but this doesn't seem to do anything.  This is purely front-end where I don't want users/customers from the Reseller group to see the Affiliate Program")*

Hi,

You can potentially manage the Affiliate access on frontend by editing the settings of the plugin "HikaShop Affiliate".
Select a specific group.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzQwNzEtdXNlci1hY2Nlc3MtZGlzcGxheS1vZi1jb250cm9sLXBhbmVsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")**
- [![earmaster's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35023-earmaster "View earmaster's Profile") Topic Author
- [ Offline](/forum/user/35023-earmaster)

Less More

- Posts: 137
- Thank you received: 2
-
-

11 years 10 months ago -  11 years 10 months ago [\#185685](#185685) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[User Access / Display of control panel](/forum/33-customers/874071-user-access-display-of-control-panel#185685 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi!  I have two groups of users, resellers and affiliates, each have their own Joomla group, my issue is that I don't want resellers to be able to &quot;activate&quot; the affiliate program, i.e I want to disable the &quot;Affiliate Program&quot; view in the User control panel for any user logged in as a &quot;Reseller&quot;  I have tried to disable access through HikaShop configuration -&gt; Access Level. but this doesn't seem to do anything.  This is purely front-end where I don't want users/customers from the Reseller group to see the Affiliate Program")*

But would that not affect the affiliate system regarding the customers buying with a affiliate cookie?

I have properly not explained myself well enough, what I mean is that we have 2 user groups (Affiliate and Reseller) and then we have the REGULAR (non-registered) customers, what we want is to disable the access to the affiliate program for the user group resellers and still allow normal function / use of the Affiliate program for our regular customers and the Affiliate group

Update:
Would it be possible to load user details into the cpanel view?

Last edit: 11 years 10 months ago by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile"). Reason: Clarification and secondary question

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzQwNzEtdXNlci1hY2Nlc3MtZGlzcGxheS1vZi1jb250cm9sLXBhbmVsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 10 months ago [\#185717](#185717) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[User Access / Display of control panel](/forum/33-customers/874071-user-access-display-of-control-panel#185717 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi!  I have two groups of users, resellers and affiliates, each have their own Joomla group, my issue is that I don't want resellers to be able to &quot;activate&quot; the affiliate program, i.e I want to disable the &quot;Affiliate Program&quot; view in the User control panel for any user logged in as a &quot;Reseller&quot;  I have tried to disable access through HikaShop configuration -&gt; Access Level. but this doesn't seem to do anything.  This is purely front-end where I don't want users/customers from the Reseller group to see the Affiliate Program")*

Hi,

Indeed changing the group in the plugin settings, is not a good solution.
The easiest way to restrict this feature will be to edit the view "affiliate / show" and add a PHP condition on the user group.

Something like: Code:

$user = JFactory::getUser(); if(in_array('2',$user-&gt;groups)){ // replace '2' by the id of the reseller group. echo "Not allowed to reach this part &lt;/div&gt;"; return; }

The following user(s) said Thank You: [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzQwNzEtdXNlci1hY2Nlc3MtZGlzcGxheS1vZi1jb250cm9sLXBhbmVsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")**
- [![earmaster's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35023-earmaster "View earmaster's Profile") Topic Author
- [ Offline](/forum/user/35023-earmaster)

Less More

- Posts: 137
- Thank you received: 2
-
-

11 years 10 months ago [\#185822](#185822) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[User Access / Display of control panel](/forum/33-customers/874071-user-access-display-of-control-panel#185822 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi!  I have two groups of users, resellers and affiliates, each have their own Joomla group, my issue is that I don't want resellers to be able to &quot;activate&quot; the affiliate program, i.e I want to disable the &quot;Affiliate Program&quot; view in the User control panel for any user logged in as a &quot;Reseller&quot;  I have tried to disable access through HikaShop configuration -&gt; Access Level. but this doesn't seem to do anything.  This is purely front-end where I don't want users/customers from the Reseller group to see the Affiliate Program")*

> Xavier wrote: Hi,
> The easiest way to restrict this feature will be to edit the view "affiliate / show" and add a PHP condition on the user group.
>
> Something like:
>
> Code:
>
> $user = JFactory::getUser(); if(in_array('2',$user-&gt;groups)){ // replace '2' by the id of the reseller group. echo "Not allowed to reach this part &lt;/div&gt;"; return; }

This was also what I had in mind, of course I didn't realise I could've just load Joomla to load these instead of trying to find a Hikashop class to do this ![:)](/media/kunena/emoticons/3.png ":)")

Thanks for your help ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzQwNzEtdXNlci1hY2Nlc3MtZGlzcGxheS1vZi1jb250cm9sLXBhbmVsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")**
- [![CarlosC's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6899-carlosc "View CarlosC's Profile")
- [ Offline](/forum/user/6899-carlosc)

Less More

- Posts: 23
- Thank you received: 0
-
-

11 years 7 months ago [\#199839](#199839) by [CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")  Replied by *[CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")* on topic *[User Access / Display of control panel](/forum/33-customers/874071-user-access-display-of-control-panel#199839 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi!  I have two groups of users, resellers and affiliates, each have their own Joomla group, my issue is that I don't want resellers to be able to &quot;activate&quot; the affiliate program, i.e I want to disable the &quot;Affiliate Program&quot; view in the User control panel for any user logged in as a &quot;Reseller&quot;  I have tried to disable access through HikaShop configuration -&gt; Access Level. but this doesn't seem to do anything.  This is purely front-end where I don't want users/customers from the Reseller group to see the Affiliate Program")*

Hallo
I have a similar problem. I don´t want that a regular customer is able to see the affiliate button in the cpanel. I thought it would be done by activating "no selfafiliation" in the administration. But this does not work.
For this I have comment out the function "onUserAccountDisplay(&amp;$buttons)" in the hikashopaffiliate.php.
But this is not the best way to do this.

Could you help me please.

Best regards Carlos

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzQwNzEtdXNlci1hY2Nlc3MtZGlzcGxheS1vZi1jb250cm9sLXBhbmVsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86586
- Thank you received: 14325
-
-

11 years 7 months ago [\#199854](#199854) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[User Access / Display of control panel](/forum/33-customers/874071-user-access-display-of-control-panel#199854 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi!  I have two groups of users, resellers and affiliates, each have their own Joomla group, my issue is that I don't want resellers to be able to &quot;activate&quot; the affiliate program, i.e I want to disable the &quot;Affiliate Program&quot; view in the User control panel for any user logged in as a &quot;Reseller&quot;  I have tried to disable access through HikaShop configuration -&gt; Access Level. but this doesn't seem to do anything.  This is purely front-end where I don't want users/customers from the Reseller group to see the Affiliate Program")*

Hi,

You could add the line: Code:

if($oneButton['image']=="affiliate") continue;

after the line: Code:

foreach($this-&gt;buttons as $oneButton){

in the file "cpanel" of the view "user" via the menu Display&gt;Views.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzQwNzEtdXNlci1hY2Nlc3MtZGlzcGxheS1vZi1jb250cm9sLXBhbmVsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")**
- [![CarlosC's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6899-carlosc "View CarlosC's Profile")
- [ Offline](/forum/user/6899-carlosc)

Less More

- Posts: 23
- Thank you received: 0
-
-

11 years 6 months ago [\#201838](#201838) by [CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")  Replied by *[CarlosC](/forum/user/6899-carlosc "View CarlosC's Profile")* on topic *[User Access / Display of control panel](/forum/33-customers/874071-user-access-display-of-control-panel#201838 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi!  I have two groups of users, resellers and affiliates, each have their own Joomla group, my issue is that I don't want resellers to be able to &quot;activate&quot; the affiliate program, i.e I want to disable the &quot;Affiliate Program&quot; view in the User control panel for any user logged in as a &quot;Reseller&quot;  I have tried to disable access through HikaShop configuration -&gt; Access Level. but this doesn't seem to do anything.  This is purely front-end where I don't want users/customers from the Reseller group to see the Affiliate Program")*

Thanks,

works perfect.

Best regards Carlos

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzQwNzEtdXNlci1hY2Nlc3MtZGlzcGxheS1vZi1jb250cm9sLXBhbmVsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.066 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
