PrestaShop Forums: Stats problem: Number of visitor (2010) - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


Stats problem: Number of visitor (2010)


Stats problem: Number of visitor (2010)

#1 Barnie

    PrestaShop Newbie

  • 01 Jul 2009
  • Members
  • Pip
  • 3 posts

Posted 12 January 2010 - 12:46 PM

I no longer get through the statistics to see how many visitors there have been by a day, week or year from 01-01-2010.

This forum HERE I have seen that by changing:

line 36 of /admin/tabs/AdminStatsTab.php file
with this line:
if (($ month = Tools:: getValue ( 'date Input Month ", -1))! = -1 AND Validate:: isInt ($ month))

solves the problem.

Unfortunately, this works for me either. anyone have ideas? I like to hear.

Regards,
David

www.erotiekcentrum.com
www.erotiekcentrum.com

#2 ruilong

    PrestaShop Addict

  • 26 Jul 2008
  • Moderators
  • 672 posts
  • Location:Beijing, China

Posted 16 January 2010 - 04:02 PM

this worked for me
if ($month = (Tools::getValue('dateInputMonth', -1)+1) AND Validate::isUnsignedInt($month))

problem seems to be that month value is blank from time to time.. don't know why it only affects 2010 but this solved it for me.
Modules and themes for prestashop.
E-butik med prestashop inkl hosting och gratis installation.

#3 thehandlestudio

    PrestaShop Apprentice

  • 25 Jan 2009
  • Members
  • PipPip
  • 250 posts
  • Location:Wales, United Kingdom

Posted 16 January 2010 - 10:01 PM

This piece of didn't work for me either....:(

Regards,

Mark
The Handle Studio
http://www.thehandlestudio.co.uk
Bringing Quality Direct To Your Door

Top Quality Hosting & Support
Use presta8656 coupon code and get 10% extra off


#4 diu1so

    PrestaShop Apprentice

  • 17 Feb 2009
  • Members
  • PipPip
  • 121 posts
  • Location:Timisoara, Romania

Posted 21 January 2010 - 07:07 PM

Well, it's there a solutions that works?

#5 Barnie

    PrestaShop Newbie

  • 01 Jul 2009
  • Members
  • Pip
  • 3 posts

Posted 22 January 2010 - 05:11 PM

Still not working :(

Posted the same problem HERE
www.erotiekcentrum.com

#6 frecoo

    PrestaShop Newbie

  • 20 Jun 2009
  • Members
  • Pip
  • 3 posts

Posted 24 January 2010 - 07:28 PM

So come on people, is there really no solution for this year-2010-stats-problem? There seems to be a lot of prestashops outside having that problem, but no one seems to care?

#7 caleefe

    PrestaShop Newbie

  • 09 Jan 2009
  • Members
  • Pip
  • 4 posts

Posted 26 January 2010 - 03:47 PM

In ADMIN/TABS/AdminStatsTab :

Try this for line 36:

if (($month = Tools::getValue(‘dateInputMonth’, -1)) != -1 AND Validate::isInt($month))

This is the first change I have found that actually WORKS!!!

This was on another thread (in French) for the same problem.

#8 Barnie

    PrestaShop Newbie

  • 01 Jul 2009
  • Members
  • Pip
  • 3 posts

Posted 26 January 2010 - 06:52 PM

Thnx for te replay!

I allready tried this one.

This is what I tried on line 36 in Admin/Tabs/AdminStatsTab.php:
1. if (($month = Tools::getValue(‘dateInputMonth’, -1)) != -1 AND Validate::isInt($month))
2. if ($month = (Tools::getValue(‘dateInputMonth’, -1)+1) AND Validate::isUnsignedInt($month))
3. if ($month = Tools::getValue('dateInputMonth', -1) AND Validate::isUnsignedInt($month))

it is very annoying, I now can't see if my Advertising Campaing on the radio gives me more visitors.

Strange is it when i logged on in my admin. The pageviews/registration/orders etc. etc. can be viewed.
It's just the visitors in the stats viewed by a day. Month and Year works!

Is there anyone who can help me, us and other people with this problem???
www.erotiekcentrum.com

#9 frecoo

    PrestaShop Newbie

  • 20 Jun 2009
  • Members
  • Pip
  • 3 posts

Posted 26 January 2010 - 09:51 PM

Now it works!!!

if (($month = Tools::getValue('dateInputMonth', -1)) != -1 AND Validate::isInt($month))

was the right way. You have only to make sure, that you get the straight apostrophs around "dateInputMonth" in your code. (This forum software changes them automaticly to wrong apostrophs.)

thanks you all for the help!

#10 Barnie

    PrestaShop Newbie

  • 01 Jul 2009
  • Members
  • Pip
  • 3 posts

Posted 27 January 2010 - 06:19 PM

Thnx Frecoo!!

SUPERRR!!

if (($month = Tools::getValue(‘dateInputMonth’, -1)) != -1 AND Validate::isInt($month))

Works for me now!!
I had to place te straight apostrophs around “dateInputMonth” in my code.

For me It's SOLVED :)

Thnx
www.erotiekcentrum.com

#11 zippoutlet

    PrestaShop Newbie

  • 21 Mar 2009
  • Members
  • Pip
  • 7 posts

Posted 11 February 2010 - 02:08 PM

From 1264612789:

Thnx Frecoo!!

SUPERRR!!

if (($month = Tools::getValue(‘dateInputMonth’, -1)) != -1 AND Validate::isInt($month))

Works for me now!!
I had to place te straight apostrophs around “dateInputMonth” in my code.

For me It's SOLVED :)

Thnx


Hi Barnie!

I have also the same problem here...but that code doesn't seems to do anything for me.. :(
what u mean by straight apostrophs..? are day and year working too?
Could u post your complete AdminStatsTab.php file here?

I really want to bypass this problem..any help would be much appreciated.

Rgds
E.Silva
Zippoutlet - www.zippoutlet.pt.to





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users