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

#   Customiser le Dashboard

##

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

Less More

- Posts: 74
- Thank you received: 7
-
-

2 years 7 months ago [\#359634](#359634) by [marcmarc](/forum/user/1529-marcmarc "View marcmarc's Profile")  *[Customiser le Dashboard](/forum/36-reports-statistics/907870-customiser-le-dashboard#359634 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1.27  Bonjour,  Je ne vois pas comment customiser le dasboard…  J'ai supprimé les rapports inutiles, créé et activé les rapports dont j'ai besoin : rien ne change dans le dasboard  Rien de cela dans la config globale  Comment doit-on s'y prendre ? Merci")* was created by *[marcmarc](/forum/user/1529-marcmarc "View marcmarc's Profile")*

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 4.4.3
-- PHP version -- : 8.1.27

Bonjour,

Je ne vois pas comment customiser le dasboard…

> To display a report on your dashboard, simply publish it through the listing or the report edition screen.

J'ai supprimé les rapports inutiles, créé et activé les rapports dont j'ai besoin : rien ne change dans le dasboard

> according to the options your set in the global configuration of Hikashop

Rien de cela dans la config globale

Comment doit-on s'y prendre ?
Merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy85MDc4NzAtY3VzdG9taXNlci1sZS1kYXNoYm9hcmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86323
- Thank you received: 14284
-
-

2 years 7 months ago [\#359635](#359635) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customiser le Dashboard](/forum/36-reports-statistics/907870-customiser-le-dashboard#359635 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1.27  Bonjour,  Je ne vois pas comment customiser le dasboard…  J'ai supprimé les rapports inutiles, créé et activé les rapports dont j'ai besoin : rien ne change dans le dasboard  Rien de cela dans la config globale  Comment doit-on s'y prendre ? Merci")*

Bonjour,

HikaShop dispose de 2 dashboards:
- Le premier est celui par défaut qui ne dispose pas d'interface de personnalisation. Il est possible de le personnalisé en développant un plugin HikaShop implémentant l'évènement onBeforeStatisticsLoad:
[ www.hikashop.com/support/documentation/6...BeforeStatisticsLoad](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onBeforeStatisticsLoad)
Bien que cela permet de faire beaucoup de choses et que c'est très puissant, il faut faire appel à un développeur PHP pour cela.

- Le second dashboard est en fait l'ancien dashboard par défaut d'HikaShop qui était le seul du backend d'HikaShop avant HikaShop 3. Ce dashboard se base sur les rapports pour générer des widgets. Celui-ci est complètement personnalisable via le menu Commandes&gt;Rapports, mais vous êtes limité par les options proposées par l'interface.

Pour passer d'un dashboard à l'autre, vous avez l'option "dashboard legacy" (dashboard obsolète je crois en Français?) dans l'onglet "Avancés" de la configuration HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy85MDc4NzAtY3VzdG9taXNlci1sZS1kYXNoYm9hcmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 74
- Thank you received: 7
-
-

2 years 7 months ago -  2 years 7 months ago [\#359647](#359647) by [marcmarc](/forum/user/1529-marcmarc "View marcmarc's Profile")  Replied by *[marcmarc](/forum/user/1529-marcmarc "View marcmarc's Profile")* on topic *[Customiser le Dashboard](/forum/36-reports-statistics/907870-customiser-le-dashboard#359647 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1.27  Bonjour,  Je ne vois pas comment customiser le dasboard…  J'ai supprimé les rapports inutiles, créé et activé les rapports dont j'ai besoin : rien ne change dans le dasboard  Rien de cela dans la config globale  Comment doit-on s'y prendre ? Merci")*

Bonjour,
Ok merci, le dashboard legacy fera l'affaire. Dommage quand même que le module dashboard ne suive pas le choix de type de dashboard.
Cordialement

edit : sorry, I've just seen that I've written in french in the english speaking part of the forum.
Feel free to put this thread in the relevant part if you want!

Last edit: 2 years 7 months ago by [marcmarc](/forum/user/1529-marcmarc "View marcmarc's Profile").

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy85MDc4NzAtY3VzdG9taXNlci1sZS1kYXNoYm9hcmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 74
- Thank you received: 7
-
-

1 year 11 months ago [\#364551](#364551) by [marcmarc](/forum/user/1529-marcmarc "View marcmarc's Profile")  Replied by *[marcmarc](/forum/user/1529-marcmarc "View marcmarc's Profile")* on topic *[Customiser le Dashboard](/forum/36-reports-statistics/907870-customiser-le-dashboard#364551 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1.27  Bonjour,  Je ne vois pas comment customiser le dasboard…  J'ai supprimé les rapports inutiles, créé et activé les rapports dont j'ai besoin : rien ne change dans le dasboard  Rien de cela dans la config globale  Comment doit-on s'y prendre ? Merci")*

Hi,
The old dashboard has been enough so far, but I would like to use the new dashboard now.
The problem is that I want to display many reports that are not present and delete some of the ones that are there.

In your answer a few months ago, you said "It is possible to customize it by developing a HikaShop plugin implementing the onBeforeStatisticsLoad event: [ www.hikashop.com/support/documentation/6...BeforeStatisticsLoad](http://www.hikashop.com/support/documentation/6...BeforeStatisticsLoad). Although this allows you to do a lot of things and is very powerful, you need a PHP developer for this."
Since I have developed plugins for Hikashop and Hikaserial I think I can try but I need a little more information…

I don't see any existing plugin that generates the dashboard as is, so I don't have an example of how to do it. Can you point me in the right direction?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy85MDc4NzAtY3VzdG9taXNlci1sZS1kYXNoYm9hcmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86323
- Thank you received: 14284
-
-

1 year 11 months ago [\#364564](#364564) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customiser le Dashboard](/forum/36-reports-statistics/907870-customiser-le-dashboard#364564 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1.27  Bonjour,  Je ne vois pas comment customiser le dasboard…  J'ai supprimé les rapports inutiles, créé et activé les rapports dont j'ai besoin : rien ne change dans le dasboard  Rien de cela dans la config globale  Comment doit-on s'y prendre ? Merci")*

Hi,

In your custom plugin, you can implement the event like so: Code:

public function onBeforeStatisticsLoad(&amp;$data) { echo '&lt;pre&gt;'; var_dump($data); echo '&lt;/pre&gt;'; }

That will display the data used by HikaShop to generate the new dashboard.
You can then directly modify the content of the $data variable in order to adapt it to your needs.

In $data, you have access to the placement of each block, the formatting, the elements to build the MySQL query to load the data, etc.

For example, if you want to change the title "Last orders" of the section with the list of the latest orders, you could use: Code:

$data['last_orders']['label'] = 'Custom label';

Or if you wanted the orders of that listing to be loaded based on the "order_invoice_created" column instead of the "order_created" column, you could add: Code:

$data['last_orders']['query']['order'] = 'hk_order.order_invoice_created DESC';

Or if you wanted this area to use the whole width on big screens, you could add: Code:

$data['last_orders']['class'] = 'hkc-lg-12 hkc-sm-12';

Basically, you have all the latitude to build your own dashboard, or do small tweaks here and there.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy85MDc4NzAtY3VzdG9taXNlci1sZS1kYXNoYm9hcmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.130 seconds

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