Hi,
In your custom plugin, you can implement the event like so:
public function onBeforeStatisticsLoad(&$data) {
echo '<pre>';
var_dump($data);
echo '</pre>';
}
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:
$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:
$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:
$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.