From 9dfb5734223e81d267be642fcda7f28144c0566a Mon Sep 17 00:00:00 2001 From: Sarah Lorenzini Date: Mon, 16 Sep 2013 15:42:08 +0200 Subject: [PATCH] // update stats tab --- .../statsregistrations/statsregistrations.php | 53 ++++++--- modules/statssales/statssales.php | 109 +++++++++++++----- 2 files changed, 115 insertions(+), 47 deletions(-) diff --git a/modules/statsregistrations/statsregistrations.php b/modules/statsregistrations/statsregistrations.php index bcdbd7f0d..16408cd42 100644 --- a/modules/statsregistrations/statsregistrations.php +++ b/modules/statsregistrations/statsregistrations.php @@ -108,21 +108,18 @@ class StatsRegistrations extends ModuleGraph if (Tools::getValue('export')) $this->csvExport(array('layers' => 0, 'type' => 'line')); $this->_html = ' -

'.$this->displayName.'

- -
'.$this->engine(array('type' => 'line')).'
-

'.$this->l('CSV Export').'

-

-

'.$this->l('Guide').' -

'.$this->l('Number of customer accounts created').'

-

'.$this->l('The total number of accounts created is not in itself important information. However, it is beneficial to analyze the number created over time. This will indicate whether or not things are on the right track. You feel me?').'

-

'.$this->l('How to act on the registrations\' evolution?').'

-

+

+
+ '.$this->l('Guide').' +
+
+

'.$this->l('Number of customer accounts created').'

+

'.$this->l('The total number of accounts created is not in itself important information. However, it is beneficial to analyze the number created over time. This will indicate whether or not things are on the right track. You feel me?').'

+
+
+ '.$this->l('How to act on the registrations\' evolution?').' +
+
'.$this->l('If you let your shop run without changing anything, the number of customer registrations should stay stable or slightly decline.').' '.$this->l('A significant increase or decrease in customer registration shows that there has probably been a change to your shop.With that in mind, we suggest that you identify the cause, correct the issue and get back in the business of making money!').'
'.$this->l('Here is a summary of what may affect the creation of customer accounts:').' @@ -131,8 +128,30 @@ class StatsRegistrations extends ModuleGraph
  • '.$this->l('Specials, sales, promotions and/or contests typically demand a shoppers\' attentions. Offering such things will not only keep your business lively, it will also increase traffic, build customer loyalty and genuine change your current e-commerce philosophy.').'
  • '.$this->l('Design and user-friendliness are more important than ever in the world of online sales. An ill-chosen or hard-to-follow graphical theme can keep shoppers at bay. This means that you should aspire to find the right balance between beauty and functionality for your online store.').'
  • -


    -
    '; +
    +
    + '.$this->displayName.' +
    +
    +
      +
    • + '.$this->l('Number of visitors who stopped at the registering step:').' '.(int)($totalBlocked).($totalRegistrations ? ' ('.number_format(100*$totalBlocked/($totalRegistrations+$totalBlocked), 2).'%)' : '').'
    • + '.$this->l('Number of visitors who placed an order directly after registration:').' '.(int)($totalBuyers).($totalRegistrations ? ' ('.number_format(100*$totalBuyers/($totalRegistrations), 2).'%)' : '').' +
    • '.$this->l('Total customer accounts:').' '.$totalRegistrations.'
    • +
    +
    +
    +
    +
    + '.$this->engine(array('type' => 'line')).' +
    + +
    +
    '; return $this->_html; } diff --git a/modules/statssales/statssales.php b/modules/statssales/statssales.php index cf2baee49..af028e141 100644 --- a/modules/statssales/statssales.php +++ b/modules/statssales/statssales.php @@ -66,38 +66,87 @@ class StatsSales extends ModuleGraph $this->csvExport(array('type' => 'pie', 'option' => '3-'.(int)Tools::getValue('id_country'))); $this->_html = ' -

    '.$this->displayName.'

    -
    - - +
    +
    + '.$this->l('Guide').' +
    +
    +

    '.$this->l('Various order statuses').'

    +

    + '.$this->l('In your Back Office, you can modify the following order statuses: Awaiting Check Payment, Payment Accepted, Preparation in Progress, Shipping, Delivered, Cancelled, Refund, Payment Error, Out of Stock, and Awaiting Bank Wire Payment.').'
    + '.$this->l('These order statuses cannot be removed from the Back Office, however you have the option to add more.').' +

    +
    +
    + '.$this->displayName.' +
    +
    +

    '.$this->l('The following graphs represent the evolution of your e-store\'s orders and sales turnover for a selected period. This tool is one that you should use often as it allows you to quickly monitor your store\'s viability. This feature also allows you to monitor multiple time periods, and only valid orders are graphically represented.').'

    +
    + +
    +
    + +
    +
    + +
    +
    -

    - '.$this->l('The following graphs represent the evolution of your e-store\'s orders and sales turnover for a selected period. This tool is one that you should use often as it allows you to quickly monitor your store\'s viability. This feature also allows you to monitor multiple time periods, and only valid orders are graphically represented.').' -

    -

    '.$this->l('Orders placed:').' '.(int)($totals['orderCount']).'

    -

    '.$this->l('Products bought:').' '.(int)($totals['products']).'

    -
    '.$this->engine(array('type' => 'line', 'option' => '1-'.(int)Tools::getValue('id_country'), 'layers' => 2)).'
    -

    '.$this->l('CSV Export').'

    -

    '.$this->l('Sales:').' '.Tools::displayPrice($totals['orderSum'], $currency).'

    -
    '.$this->engine(array('type' => 'line', 'option' => '2-'.(int)Tools::getValue('id_country'))).'
    -

    '.$this->l('CSV Export').'

    -

    +

    +
    +
    + '.$this->engine(array('type' => 'line', 'option' => '1-'.(int)Tools::getValue('id_country'), 'layers' => 2)).' +
    +
    +
      +
    • '.$this->l('Orders placed:').' '.(int)($totals['orderCount']).'
    • +
    • '.$this->l('Products bought:').' '.(int)($totals['products']).'
    • +
    • + + '.$this->l('CSV Export').' + +
    • +
    +
    +
    +
    +
    +
    +
    +
    '.$this->engine(array('type' => 'line', 'option' => '2-'.(int)Tools::getValue('id_country'))).'
    +
    +
    + +
    +
    +
    +
    '.$this->l('You can view order distribution below.').' -


    - '.($totals['orderCount'] ? $this->engine(array('type' => 'pie', 'option' => '3-'.(int)Tools::getValue('id_country'))) : $this->l('No orders for this period.')).' -

    '.$this->l('CSV Export').'

    -
    -
    -

    '.$this->l('Guide').'

    -

    '.$this->l('Various order statuses').'

    -

    - '.$this->l('In your Back Office, you can modify the following order statuses: Awaiting Check Payment, Payment Accepted, Preparation in Progress, Shipping, Delivered, Cancelled, Refund, Payment Error, Out of Stock, and Awaiting Bank Wire Payment.').'
    - '.$this->l('These order statuses cannot be removed from the Back Office, however you have the option to add more.').' -

    +
    +
    +
    +
    + '.($totals['orderCount'] ? $this->engine(array('type' => 'pie', 'option' => '3-'.(int)Tools::getValue('id_country'))) : $this->l('No orders for this period.')).' +
    + +
    +
    '; return $this->_html; }