//kevin special commit

This commit is contained in:
Vincent Augagneur
2013-09-02 14:47:47 +02:00
parent b882ecfbbc
commit d10a339542
7 changed files with 124 additions and 4 deletions
+26 -1
View File
@@ -42,7 +42,7 @@ class Dashactivity extends Module
public function install()
{
if (!parent::install() || !$this->registerHook('dashboardZoneOne'))
if (!parent::install() || !$this->registerHook('dashboardZoneOne') || !$this->registerHook('dashboardDatas'))
return false;
return true;
}
@@ -51,4 +51,29 @@ class Dashactivity extends Module
{
return $this->display(__FILE__, 'dashboard_zone_one.tpl');
}
public function hookDashboardDatas($params)
{
return array(
'data_value' => array(
'order_nbr' => 365,
'pending_orders' => 120,
'return_exchanges' => 35,
'abandoned_cart' => 12,
'products_out_of_stock' => 4,
'new_messages' => 42,
'order_inquires' => 13,
'product_reviews' => 56,
'new_customers' => 42,
'online_visitor' => 200,
'new_registrations' => 125,
'total_suscribers' => 13500,
'visits' => 10000,
'unique_visitors' => 3500,
),
'data_trends' => array(
'orders_trends' => array('way' => 'down', 'value' => 0.66),
)
);
}
}