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

#   add new button and new view to control panel

##

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

Less More

- Posts: 57
- Thank you received: 4
-
-

11 years 5 months ago [\#202198](#202198) by [rfernandes](/forum/user/29593-rfernandes "View rfernandes's Profile")  *[add new button and new view to control panel](/forum/31-development/877056-add-new-button-and-new-view-to-control-panel#202198 "Hi,  I need your help. When I access to control panel I have this:  and I wan't to add a new one and a new view because I need another page with new customers information. How can I add this?  To this case, i need:  &#42; A NEW BOTTOM LIKE THESE  &#42; A NEW VIEW WHERE WILL BE APEAR THE NEW INFORMATION THAT I WAN'T  Please, can you help me?  Thanks.")* was created by *[rfernandes](/forum/user/29593-rfernandes "View rfernandes's Profile")*

Hi,

I need your help.
When I access to control panel I have this:

[ ![2015-05-19&#95;17-50-21.png](/forum/attachment/24474) ](/forum/attachment/24474 "...9&#95;17-50-21.png")

and I wan't to add a new one and a new view because I need another page with new customers information.
How can I add this?

To this case, i need:

1. A NEW BOTTOM LIKE THESE
2. A NEW VIEW WHERE WILL BE APEAR THE NEW INFORMATION THAT I WAN'T

Please, can you help me?

Thanks.

- [ ![2015-05-19&#95;17-50-21.png](/forum/attachment/24474) ](/forum/attachment/24474 "...9&#95;17-50-21.png") [ ](/forum/attachment/24474?download=1 "...9&#95;17-50-21.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3NzA1Ni1hZGQtbmV3LWJ1dHRvbi1hbmQtbmV3LXZpZXctdG8tY29udHJvbC1wYW5lbD90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 5 months ago [\#202219](#202219) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add new button and new view to control panel](/forum/31-development/877056-add-new-button-and-new-view-to-control-panel#202219 "Hi,  I need your help. When I access to control panel I have this:  and I wan't to add a new one and a new view because I need another page with new customers information. How can I add this?  To this case, i need:  &#42; A NEW BOTTOM LIKE THESE  &#42; A NEW VIEW WHERE WILL BE APEAR THE NEW INFORMATION THAT I WAN'T  Please, can you help me?  Thanks.")*

Hi,

You can add a button there by creating a hikashop plugin implementing the onUserAccountDisplay trigger:
[ www.hikashop.com/support/support/documen...onUserAccountDisplay](http://www.hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html#onUserAccountDisplay)
You can there direct to any page of your website. So it could be a joomla article with data injected in it with the extension sorcerer, or a custom component, etc.
It's up to you, but it will require PHP development skills.

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

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

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

Less More

- Posts: 57
- Thank you received: 4
-
-

11 years 5 months ago [\#202267](#202267) by [rfernandes](/forum/user/29593-rfernandes "View rfernandes's Profile")  Replied by *[rfernandes](/forum/user/29593-rfernandes "View rfernandes's Profile")* on topic *[add new button and new view to control panel](/forum/31-development/877056-add-new-button-and-new-view-to-control-panel#202267 "Hi,  I need your help. When I access to control panel I have this:  and I wan't to add a new one and a new view because I need another page with new customers information. How can I add this?  To this case, i need:  &#42; A NEW BOTTOM LIKE THESE  &#42; A NEW VIEW WHERE WILL BE APEAR THE NEW INFORMATION THAT I WAN'T  Please, can you help me?  Thanks.")*

Hummm, i understood about the button, and PHP development skills isn't a problem for me too, but I don't understood if it's possible to create a new view in hikashop, like for example "address/address.php".
Isn't possible to do that without compromise the core of your hikashop component?
For example, with some override to don't compromisse.

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

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

Less More

- Posts: 57
- Thank you received: 4
-
-

11 years 5 months ago [\#202272](#202272) by [rfernandes](/forum/user/29593-rfernandes "View rfernandes's Profile")  Replied by *[rfernandes](/forum/user/29593-rfernandes "View rfernandes's Profile")* on topic *[add new button and new view to control panel](/forum/31-development/877056-add-new-button-and-new-view-to-control-panel#202272 "Hi,  I need your help. When I access to control panel I have this:  and I wan't to add a new one and a new view because I need another page with new customers information. How can I add this?  To this case, i need:  &#42; A NEW BOTTOM LIKE THESE  &#42; A NEW VIEW WHERE WILL BE APEAR THE NEW INFORMATION THAT I WAN'T  Please, can you help me?  Thanks.")*

How can I reorder all of this items?

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

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

Less More

- Posts: 57
- Thank you received: 4
-
-

11 years 5 months ago -  11 years 5 months ago [\#202287](#202287) by [rfernandes](/forum/user/29593-rfernandes "View rfernandes's Profile")  Replied by *[rfernandes](/forum/user/29593-rfernandes "View rfernandes's Profile")* on topic *[add new button and new view to control panel](/forum/31-development/877056-add-new-button-and-new-view-to-control-panel#202287 "Hi,  I need your help. When I access to control panel I have this:  and I wan't to add a new one and a new view because I need another page with new customers information. How can I add this?  To this case, i need:  &#42; A NEW BOTTOM LIKE THESE  &#42; A NEW VIEW WHERE WILL BE APEAR THE NEW INFORMATION THAT I WAN'T  Please, can you help me?  Thanks.")*

> rfernandes wrote: How can I reorder all of this items?

I have found one solution:

first, you need to create a new plugin where you need to use this function: Code:

function onUserAccountDisplay(&amp;$buttons) { $buttons['YOUR_NEW_BUTTON']['link'] = 'new link'; $buttons['YOUR_NEW_BUTTON']['level'] = 0; $buttons['YOUR_NEW_BUTTON']['image'] = 'ICON_NAME'; $buttons['YOUR_NEW_BUTTON']['text'] = 'BUTTON_NAME'; $buttons['YOUR_NEW_BUTTON']['description'] = 'BUTTON_DESCRIPTION'; $cont = 0; $sort = array(); foreach($buttons as $key =&gt; $val) { switch ($key) { case '0': $cont = 0; break; case 'YOUR_NEW_BUTTON': $cont = 1; break; case 'address': $cont = 2; break; case 'order': $cont = 3; break; case 'cart': $cont = 4; break; case 'wishlist': $cont = 5; break; case 'download': $cont = 6; break; } $sort['order'][$key] = $cont; $sort['level'][$key] = $val['level']; } array_multisort($sort['level'], SORT_ASC, $sort['order'], SORT_ASC, $buttons); }

And works.

Now the next step will be create a new view for this 'YOUR_NEW_BUTTON'.
Can you help me with this?

Thanks

Last edit: 11 years 5 months ago by [rfernandes](/forum/user/29593-rfernandes "View rfernandes's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3NzA1Ni1hZGQtbmV3LWJ1dHRvbi1hbmQtbmV3LXZpZXctdG8tY29udHJvbC1wYW5lbD90bXBsPW1hcmtkb3du) 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 5 months ago -  11 years 5 months ago [\#202270](#202270) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[add new button and new view to control panel](/forum/31-development/877056-add-new-button-and-new-view-to-control-panel#202270 "Hi,  I need your help. When I access to control panel I have this:  and I wan't to add a new one and a new view because I need another page with new customers information. How can I add this?  To this case, i need:  &#42; A NEW BOTTOM LIKE THESE  &#42; A NEW VIEW WHERE WILL BE APEAR THE NEW INFORMATION THAT I WAN'T  Please, can you help me?  Thanks.")*

Hi,

Once you have created the new button, you can redirect to the page you want, not necessarily an HikaShop page.
So I think that the easiest way will be to create a joomla article as Nicolas said, and thanks to the "sorcerer" extension add php code to load all the desired data, and display the informations as you want.

The problem when creating a view is to call it, it require an entry in the controller, etc, so core files.

You can re-order the entries by editig the view "user / cpanel", simply reorder before the foreach.
For the entries added by plugins, they will be after the other entries, and their ordering is based on the order of the plugins.

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

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

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

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

Less More

- Posts: 57
- Thank you received: 4
-
-

11 years 5 months ago [\#202786](#202786) by [rfernandes](/forum/user/29593-rfernandes "View rfernandes's Profile")  Replied by *[rfernandes](/forum/user/29593-rfernandes "View rfernandes's Profile")* on topic *[add new button and new view to control panel](/forum/31-development/877056-add-new-button-and-new-view-to-control-panel#202786 "Hi,  I need your help. When I access to control panel I have this:  and I wan't to add a new one and a new view because I need another page with new customers information. How can I add this?  To this case, i need:  &#42; A NEW BOTTOM LIKE THESE  &#42; A NEW VIEW WHERE WILL BE APEAR THE NEW INFORMATION THAT I WAN'T  Please, can you help me?  Thanks.")*

Hi Xavier,

Thanks for your help.
Works great like you said.
Isn't a solution that I have planed but works great.
I have **create a new option button in a control panel** with a code that I have put here before and after that I have **developed a new module** with all what I wan't and after that I **called this module inside a article**.
Put some inline css to hide all edit options of the article page and block all changes in this pages to prevent some damage maked from another users and works great.

Thanks for your help.

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

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

[](#top)
