Jump to content

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

Dashboard Statistics Custom Range Stuck On 1969 Rate Topic   - - - - -

 
  • avaneesh
  • Newbie
  • Trial users
  • Join Date: 05-Aug 16
  • 2 posts

Posted 01 September 2016 - 06:53 AM #1

Hi, I've CS Cart v4

I'm just playing around with it and noticed that my Sales Statistics Dashboard always has a single dot marked on Jan 1st, 1970 for 0 orders.

 

I cant seem to get this graph to update or change irrespective of any amount of orders I complete and close.

 

The data range dropdown on the top right corner, by default has the "Custom Range" value set to 31st December 1969 to 31st December 1970.

 

Any help?

 

I tried to debug by echo-ing the current Date in Smarty and Php; September 2016 as it should be...

 

Please help.

Attached Thumbnails

  • s6aLGW.jpg
  • kQBOCu.jpg


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

Posted 01 September 2016 - 02:24 PM #2

design/backend/templates/index.tpl

 

try to replace:

[{if $is_day}[{$date}, 0, 0, 0]{else}new Date({$date}){/if}, {$data.prev}, {$data.cur}]{if !$smarty.foreach.graph.last},{/if}

with

[{if $is_day}[{$date|default:$smarty.const.TIME}, 0, 0, 0]{else}new Date({$date|default:$smarty.const.TIME}){/if}, {$data.prev}, {$data.cur}]{if !$smarty.foreach.graph.last},{/if}

then clear cache

 

(!) 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    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • avaneesh
  • Newbie
  • Trial users
  • Join Date: 05-Aug 16
  • 2 posts

Posted 13 September 2016 - 03:30 AM #3

Nope. Didn't work...

I opened my error_logs file.

I see a bunch of these.

  PHP Notice:  Undefined variable: timestamp_to in  /app/controllers/backend/index.php on line 191
  PHP Notice:  Undefined variable: timestamp_from in  /app/controllers/backend/index.php on line 196
  PHP Notice:  Undefined variable: timestamp_to in  /app/controllers/backend/index.php on line 196
  PHP Notice:  Undefined variable: is_day in  /app/controllers/backend/index.php on line 196
  PHP Notice:  Undefined variable: stats in  /app/controllers/backend/index.php on line 206
  PHP Notice:  Undefined variable: is_day in  /app/controllers/backend/index.php on line 212

I tried to restore the backend folder inside the app/controllers/ as well as inside design/ with the original.
But this problem still occurs



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

Posted 13 September 2016 - 09:57 AM #4

Nope. Didn't work...

I opened my error_logs file.

I see a bunch of these.

  PHP Notice:  Undefined variable: timestamp_to in  /app/controllers/backend/index.php on line 191
  PHP Notice:  Undefined variable: timestamp_from in  /app/controllers/backend/index.php on line 196
  PHP Notice:  Undefined variable: timestamp_to in  /app/controllers/backend/index.php on line 196
  PHP Notice:  Undefined variable: is_day in  /app/controllers/backend/index.php on line 196
  PHP Notice:  Undefined variable: stats in  /app/controllers/backend/index.php on line 206
  PHP Notice:  Undefined variable: is_day in  /app/controllers/backend/index.php on line 212

I tried to restore the backend folder inside the app/controllers/ as well as inside design/ with the original.
But this problem still occurs

 

Looks like some data in the database is lost. But it is required detailed examination


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    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)