Hello. Statistic table of sales chart on admin page (monthly statistics of the store) was working before I change some reports settings in sales repots (sales_reports.view). For a while it has not been working correctly. It doesn’t show correct data. How to turn it working correctly again (like default)?
I use ver. MV 4.2.4
Now it doesn’t work correctly.
[quote name='Damir (WSA-team)' timestamp='1428176019' post='210292']
please check default settings on cs-cart demo
[/quote]
I think monthly statistics of the store chart is not related to reports in sales_reports.view. Because I deleted all reports there and cleared cache, but the chart at front admin shows still same values.
I found that the chart shows data according to orders which statuses are “Complated” only. So, it doesn't related to sales reports.
I turn all order statuses from “complated” to another custom status I have defined like “Shipped”.
To make chart work correctly I should set this chart to work according to status I defined (like “Shipped”). So, I want chart to show only orders statuses that I define. How to do this?
There is the following string in the app/functions/fn.cart.php and app/controllers/backend/index.php files:
$paid_statuses = array('P', 'C');
You should add your status here. For example, the ID of your Shipped status is S:
The result will be:
$paid_statuses = array('P', 'C', 'S');
[quote name='eComLabs' timestamp='1428314008' post='210381']
There is the following string in the app/functions/fn.cart.php and app/controllers/backend/index.php files:
$paid_statuses = array('P', 'C');
You should add your status here. For example, the ID of your Shipped status is S:
The result will be:
$paid_statuses = array('P', 'C', 'S');
[/quote]
Thanks eCom.
[quote name='ooaykac' timestamp='1428336607' post='210469']
Thanks eCom.
[/quote]
We are glad to help you.
We are glad to help you.
How we can delete this chart ?
i don`t use it
and i think use lot of memory... home page work very slow
app/controllers/backend/index.php
try to replace
$orders_stat = fn_dashboard_get_orders_statistics($timestamp_from, $timestamp_to);
with
//$orders_stat = fn_dashboard_get_orders_statistics($timestamp_from, $timestamp_to); $orders_stat = array();
(!) Not tested
app/controllers/backend/index.php
try to replace
$orders_stat = fn_dashboard_get_orders_statistics($timestamp_from, $timestamp_to);with
//$orders_stat = fn_dashboard_get_orders_statistics($timestamp_from, $timestamp_to); $orders_stat = array();(!) Not tested
At 4.9.2 i don`t have this line
Thanks
replace
list($orders_stat['orders'], $search_params, $orders_stat['orders_total']) = fn_get_orders($params, 0, true);
with
//list($orders_stat['orders'], $search_params, $orders_stat['orders_total']) = fn_get_orders($params, 0, true); $orders_stat['orders'] = array(); $orders_stat['orders_total'] = 0;
Don`t work
Maybe because i have ULTIMATE version ?
Don`t work
Maybe because i have ULTIMATE version ?
Please show us on the screenshot what part of dashboard do you want to hide?