Updated:KPIs on admin orders list page

This commit is contained in:
Sumit Panwar
2024-03-19 16:30:31 +05:30
parent 1a685eef7c
commit f3e1a93c3c
5 changed files with 252 additions and 74 deletions

View File

@@ -203,6 +203,22 @@ class AdminOrderPreferencesControllerCore extends AdminController
'list' => $displayCurrencyOptions,
'identifier' => 'value',
),
'PS_ORDER_KPI_AVG_ORDER_VALUE_NB_DAYS' => array(
'title' => $this->l('Days for Average Order Value KPI'),
'hint' => $this->l('Set for last how many days, the \'Average order value\' in the KPI to be calculated.'),
'type' => 'text',
'validation' => 'isUnsignedInt',
'class' => 'fixed-width-xl',
'suffix' => $this->l('day(s)'),
),
'PS_ORDER_KPI_PER_VISITOR_PROFIT_NB_DAYS' => array(
'title' => $this->l('Days for Net Profit Per Visitor KPI'),
'hint' => $this->l('Set for last how many days, the \'Net Profit per Visitor\' in the KPI to be calculated.'),
'type' => 'text',
'validation' => 'isUnsignedInt',
'class' => 'fixed-width-xl',
'suffix' => $this->l('day(s)'),
),
),
'submit' => array('title' => $this->l('Save'))
),