Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Turning Sales Statistics Chart To Default Rate Topic   - - - - -

 
  • ooaykac
  • Senior Member
  • Members
  • Join Date: 22-Nov 12
  • 297 posts

Posted 04 April 2015 - 07:21 PM #1

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. :(

Posted Image

 

Posted 04 April 2015 - 07:33 PM #2

please check default settings on cs-cart demo

 
  • ooaykac
  • Senior Member
  • Members
  • Join Date: 22-Nov 12
  • 297 posts

Posted 04 April 2015 - 07:54 PM #3

please check default settings on cs-cart demo

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.

 
  • ooaykac
  • Senior Member
  • Members
  • Join Date: 22-Nov 12
  • 297 posts

Posted 04 April 2015 - 08:13 PM #4

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?

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19833 posts

Posted 06 April 2015 - 09:53 AM #5

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');

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • ooaykac
  • Senior Member
  • Members
  • Join Date: 22-Nov 12
  • 297 posts

Posted 06 April 2015 - 04:10 PM #6

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');

Thanks eCom.

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19833 posts

Posted 07 April 2015 - 10:44 AM #7

Thanks eCom.


We are glad to help you.

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • becomarius
  • Senior Member
  • Members
  • Join Date: 09-Feb 12
  • 215 posts

Posted 19 November 2019 - 12:56 PM #8

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


CS Cart lovers


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19833 posts

Posted 19 November 2019 - 01:20 PM #9

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • becomarius
  • Senior Member
  • Members
  • Join Date: 09-Feb 12
  • 215 posts

Posted 21 November 2019 - 02:08 PM #10

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


CS Cart lovers


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19833 posts

Posted 22 November 2019 - 05:59 AM #11

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;

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • becomarius
  • Senior Member
  • Members
  • Join Date: 09-Feb 12
  • 215 posts

Posted 22 November 2019 - 08:18 AM #12

Don`t work

 

Maybe because i have ULTIMATE version ?


CS Cart lovers


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19833 posts

Posted 22 November 2019 - 01:06 PM #13

Don`t work

 

Maybe because i have ULTIMATE version ?

 

Please show us on the screenshot what part of dashboard do you want to hide?


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.