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

#   Remove button from the user control panel

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

11 years 3 months ago [\#210307](#210307) by [Ferhanzo](/forum/user/38215-ferhanzo "View Ferhanzo's Profile")  *[Remove button from the user control panel](/forum/4-how-to/878527-remove-button-from-the-user-control-panel#210307 "-- HikaShop version -- : 2.5.0  Hello, i have 2 questions. 1- I would like to remove the &quot; manage your addresses &quot; from the user control panel. I've tried some codes posted here in the forum but did not work .  2- How do I insert buttons ( just like this ) on the control panel ? Is there any tutorial or something?  Thanks")* was created by *[Ferhanzo](/forum/user/38215-ferhanzo "View Ferhanzo's Profile")*

-- HikaShop version -- : 2.5.0

Hello, i have 2 questions.
1- I would like to remove the " manage your addresses " from the user control panel. I've tried some codes posted here in the forum but did not work .

[ ![hika.jpg](/forum/attachment/25784) ](/forum/attachment/25784 "hika.jpg")

2- How do I insert buttons ( just like this ) on the control panel ? Is there any tutorial or something?

Thanks

- [ ![hika.jpg](/forum/attachment/25784) ](/forum/attachment/25784 "hika.jpg") [ ](/forum/attachment/25784?download=1 "hika.jpg")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26395
- Thank you received: 4077
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#210308](#210308) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Remove button from the user control panel](/forum/4-how-to/878527-remove-button-from-the-user-control-panel#210308 "-- HikaShop version -- : 2.5.0  Hello, i have 2 questions. 1- I would like to remove the &quot; manage your addresses &quot; from the user control panel. I've tried some codes posted here in the forum but did not work .  2- How do I insert buttons ( just like this ) on the control panel ? Is there any tutorial or something?  Thanks")*

Hi,

1 - In the view "frontend / your front-end template / user / cpanel", you have to place just before Code:

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

Some code to remove the buttons you do not want, like Code:

unset($this-&gt;buttons['address']); foreach($this-&gt;buttons as $oneButton) {

2 - With the same kind of process, you need to add a new entry in the PHP array variable Code:

$this-&gt;buttons['address'] = array( 'link' =&gt; hikashop_completeLink('address'), 'level' =&gt; 0, 'image' =&gt; 'address', 'text' =&gt; JText::_('ADDRESSES'), 'description' =&gt; '&lt;ul&gt;&lt;li&gt;'.JText::_('MANAGE_ADDRESSES').'&lt;/li&gt;&lt;/ul&gt;' ); foreach($this-&gt;buttons as $oneButton) {

More about customization and view overrides :
[ www.hikashop.com/support/support/documen...ize-the-display.html](http://www.hikashop.com/support/support/documentation/153-customize-the-display.html)

Regards,

---

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

The following user(s) said Thank You: [Ferhanzo](/forum/user/38215-ferhanzo "View Ferhanzo's Profile"), [Osindelka](/forum/user/42505-osindelka "View Osindelka's Profile")

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 3 months ago -  11 years 3 months ago [\#210835](#210835) by [Cossettini](/forum/user/38136-cossettini "View Cossettini's Profile")  Replied by *[Cossettini](/forum/user/38136-cossettini "View Cossettini's Profile")* on topic *[Remove button from the user control panel](/forum/4-how-to/878527-remove-button-from-the-user-control-panel#210835 "-- HikaShop version -- : 2.5.0  Hello, i have 2 questions. 1- I would like to remove the &quot; manage your addresses &quot; from the user control panel. I've tried some codes posted here in the forum but did not work .  2- How do I insert buttons ( just like this ) on the control panel ? Is there any tutorial or something?  Thanks")*

Hello
Similar problem in user / cpanel.php ...this works to remove address Code:

unset($this-&gt;buttons['address']);

but similar code does not move affiliate program button Code:

unset($this-&gt;buttons['affiliate']);

Is their a problem with the naming ? I tried affiliates, partner, partners etc ...
thanks

Last edit: 11 years 3 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg3ODUyNy1yZW1vdmUtYnV0dG9uLWZyb20tdGhlLXVzZXItY29udHJvbC1wYW5lbD90bXBsPW1hcmtkb3du) 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: 86359
- Thank you received: 14294
-
-

11 years 3 months ago [\#210840](#210840) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Remove button from the user control panel](/forum/4-how-to/878527-remove-button-from-the-user-control-panel#210840 "-- HikaShop version -- : 2.5.0  Hello, i have 2 questions. 1- I would like to remove the &quot; manage your addresses &quot; from the user control panel. I've tried some codes posted here in the forum but did not work .  2- How do I insert buttons ( just like this ) on the control panel ? Is there any tutorial or something?  Thanks")*

Hi,

There is no problem with the naming. The naming is just a number for the affiliate button.
Do a var_dump() of the $this-&gt;buttons variable and you'll see the key of each element in the array so that you can use it for the affiliate.
But if you don't need the affiliate button, then maybe it means that you don't need the affiliate feature at all, and in that case, it's even better to just disable the HikaShop affiliate plugin via the Joomla plugins manager.

The following user(s) said Thank You: [Cossettini](/forum/user/38136-cossettini "View Cossettini's Profile")

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 3 months ago [\#210919](#210919) by [Cossettini](/forum/user/38136-cossettini "View Cossettini's Profile")  Replied by *[Cossettini](/forum/user/38136-cossettini "View Cossettini's Profile")* on topic *[Remove button from the user control panel](/forum/4-how-to/878527-remove-button-from-the-user-control-panel#210919 "-- HikaShop version -- : 2.5.0  Hello, i have 2 questions. 1- I would like to remove the &quot; manage your addresses &quot; from the user control panel. I've tried some codes posted here in the forum but did not work .  2- How do I insert buttons ( just like this ) on the control panel ? Is there any tutorial or something?  Thanks")*

Yes. I disabled the affiliate plugin and it works. Thanks

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

- **[DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile")**
- [![DimLVL's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32108.jpg)](/forum/user/32108-dimlvl "View DimLVL's Profile")
- [ Offline](/forum/user/32108-dimlvl)

Less More

- Posts: 61
- Thank you received: 0
-
-

11 years 3 weeks ago [\#217469](#217469) by [DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile")  Replied by *[DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile")* on topic *[Remove button from the user control panel](/forum/4-how-to/878527-remove-button-from-the-user-control-panel#217469 "-- HikaShop version -- : 2.5.0  Hello, i have 2 questions. 1- I would like to remove the &quot; manage your addresses &quot; from the user control panel. I've tried some codes posted here in the forum but did not work .  2- How do I insert buttons ( just like this ) on the control panel ? Is there any tutorial or something?  Thanks")*

> Jerome wrote: 2 - With the same kind of process, you need to add a new entry in the PHP array variable
>
> Code:
>
> $this-&gt;buttons['address'] = array( 'link' =&gt; hikashop_completeLink('address'), 'level' =&gt; 0, 'image' =&gt; 'address', 'text' =&gt; JText::_('ADDRESSES'), 'description' =&gt; '&lt;ul&gt;&lt;li&gt;'.JText::_('MANAGE_ADDRESSES').'&lt;/li&gt;&lt;/ul&gt;' ); foreach($this-&gt;buttons as $oneButton) {

Guys, can I ask you to give me a sample code please? Unfortunately I don't know php, and it's quite difficult for me to make it correct. For examle I have a link for new button - site.com/link.html and image for button site.com/image.jpg .

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg3ODUyNy1yZW1vdmUtYnV0dG9uLWZyb20tdGhlLXVzZXItY29udHJvbC1wYW5lbD90bXBsPW1hcmtkb3du) 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 3 weeks ago -  11 years 3 weeks ago [\#217484](#217484) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Remove button from the user control panel](/forum/4-how-to/878527-remove-button-from-the-user-control-panel#217484 "-- HikaShop version -- : 2.5.0  Hello, i have 2 questions. 1- I would like to remove the &quot; manage your addresses &quot; from the user control panel. I've tried some codes posted here in the forum but did not work .  2- How do I insert buttons ( just like this ) on the control panel ? Is there any tutorial or something?  Thanks")*

Hi,

You can use that code: Code:

$this-&gt;buttons['mybutton'] = array( 'link' =&gt; JUri::base().'/link', 'level' =&gt; 0, 'image' =&gt; 'image', 'text' =&gt; JText::_('MY_TEXT'), 'description' =&gt; '&lt;ul&gt;&lt;li&gt;'.JText::_('MY_DESCRIPTION').'&lt;/li&gt;&lt;/ul&gt;' );

For the image, you will have to add an image in the folder "media/com_hikashop/images/icons" and name it like: "icon-48-image.png"

Last edit: 11 years 3 weeks ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

The following user(s) said Thank You: [DimLVL](/forum/user/32108-dimlvl "View DimLVL's Profile")

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

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

Less More

- Posts: 284
- Thank you received: 42
-
-

5 years 2 months ago -  5 years 2 months ago [\#335402](#335402) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[Remove button from the user control panel](/forum/4-how-to/878527-remove-button-from-the-user-control-panel#335402 "-- HikaShop version -- : 2.5.0  Hello, i have 2 questions. 1- I would like to remove the &quot; manage your addresses &quot; from the user control panel. I've tried some codes posted here in the forum but did not work .  2- How do I insert buttons ( just like this ) on the control panel ? Is there any tutorial or something?  Thanks")*

For this topic, the solution it is still the same, editing the view or to use css to hide them?

Last edit: 5 years 2 months ago by [oxido](/forum/user/29793-oxido "View oxido's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg3ODUyNy1yZW1vdmUtYnV0dG9uLWZyb20tdGhlLXVzZXItY29udHJvbC1wYW5lbD90bXBsPW1hcmtkb3du) 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: 86359
- Thank you received: 14294
-
-

5 years 2 months ago [\#335406](#335406) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Remove button from the user control panel](/forum/4-how-to/878527-remove-button-from-the-user-control-panel#335406 "-- HikaShop version -- : 2.5.0  Hello, i have 2 questions. 1- I would like to remove the &quot; manage your addresses &quot; from the user control panel. I've tried some codes posted here in the forum but did not work .  2- How do I insert buttons ( just like this ) on the control panel ? Is there any tutorial or something?  Thanks")*

Hi,

You don't need to edit the view anymore.
You can just add such CSS: Code:

.hikashop_cpanel_address_div { display: none; }

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

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

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

Less More

- Posts: 284
- Thank you received: 42
-
-

5 years 2 months ago [\#335431](#335431) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[Remove button from the user control panel](/forum/4-how-to/878527-remove-button-from-the-user-control-panel#335431 "-- HikaShop version -- : 2.5.0  Hello, i have 2 questions. 1- I would like to remove the &quot; manage your addresses &quot; from the user control panel. I've tried some codes posted here in the forum but did not work .  2- How do I insert buttons ( just like this ) on the control panel ? Is there any tutorial or something?  Thanks")*

tip: need to use !important
.hikashop_cpanel_address_div { display: none !important; }

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg3ODUyNy1yZW1vdmUtYnV0dG9uLWZyb20tdGhlLXVzZXItY29udHJvbC1wYW5lbD90bXBsPW1hcmtkb3du) 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.138 seconds

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