Jump to content

sales and orders stats dont work


Recommended Posts

  • 1 month later...
  • 1 month later...
  • 1 month later...
  • 3 weeks later...

Here are more specific details about this problem:

I have installed prestashop 1.2.4 and change default language from english to my native languge.

I also deleted all currencies besides EURO (and make EURO as default one).

I have noticed that sales and orders stats stop to work after this. It is working fine after fresh install of english version.

Someone mentioned that it’s a matter of currency, not language.

So, right now I have only one currency in my BO - EURO (with ID 1). I have deleted other (dollar and pound).

Is there anything I could do to fix this, any changes to code or database?

Can comeone give me some advice please (parhaps from prestashop team)?? Here are quite few of us with the same problem...


Regards,

14243_XJHkYEwckrvrODdGa3aJ_t

Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...

Open your admin folder then go to the file:

tabs\AdminStats.php

Find: invoice_date

and replace with: delivery_date


Do the same with file:

modules\statshome\statshome.php


for file:

modules\statssales\statssales.php

Find: invoice_date

and replace with: date_add

  • Like 2
Link to comment
Share on other sites

Open your admin folder then go to the file:

tabs\AdminStats.php

Find: invoice_date

and replace with: delivery_date


Do the same with file:

modules\statshome\statshome.php


for file:

modules\statssales\statssales.php

Find: invoice_date

and replace with: date_add



Wow, thanks a lot. It seems to work now. I ve been waiting for this solution for quite some time now.

Thanks again.
Link to comment
Share on other sites

Hey,
Thank you, this worked for me also!!!

But, don't know if this problem is related:
under tab/Stats following problems still are:
- best products (remains empty)
- catalog statistics ( Products bought: 0 for alla articles, and some lines further Products never bought: 2 / 4 )
- best customers : money spent remains empty

Warmest regards

Link to comment
Share on other sites


But, don't know if this problem is related:
under tab/Stats following problems still are:
- best products (remains empty)
- catalog statistics ( Products bought: 0 for alla articles, and some lines further Products never bought: 2 / 4 )
- best customers : money spent remains empty


The problem with statistics begins when you turn off invoices.
Tab "Orders" -> "Invoices" -> "Enable invoices: No"

For best products open the file:

modules\statsbestproducts\statsbestproducts.php
Find: invoice_date
and replace all with: delivery_date

For best customers open the file

modules\statsbestcustomers\statsbestcustomers.php
Find: invoice_date
and replace all with: delivery_date

For catalog statistics no solution yet.
  • Like 1
Link to comment
Share on other sites

  • 7 months later...
  • 2 months later...
  • 1 year later...

Check that in Orders > Statuses the statuses you use have the option "Allow customer to download and view PDF version of invoice" ticked for the statuses you use.

 

For Best Customers and Best Products make sure you have the modules installed at Modules > Analytics & Stats

Link to comment
Share on other sites

  • 10 months later...

I have the same problem in PS 1.5.4...I can't Allow customer to download and view PDF version of invoice, so I would like to try a fix like this:

 

Open your admin folder then go to the file:

 

tabs\AdminStats.php

 

Find: invoice_date

 

and replace with: delivery_date

 

 

Do the same with file:

 

modules\statshome\statshome.php

 

 

for file:

 

modules\statssales\statssales.php

 

Find: invoice_date

 

and replace with: date_add

 

But files are all changed. Can anyone help to find a way to apply this workaround to 1.5.x please?

 

Thanks a lot!

Link to comment
Share on other sites

  • 4 months later...

Open your admin folder then go to the file:

 

tabs\AdminStats.php

 

Find: invoice_date

 

and replace with: delivery_date

 

 

Do the same with file:

 

modules\statshome\statshome.php

 

 

for file:

 

modules\statssales\statssales.php

 

Find: invoice_date

 

and replace with: date_add

 

Thanks man

Link to comment
Share on other sites

×
×
  • Create New...