VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Development Projects, Modifications, Hacks & Tweaks. VM1.1 => Topic started by: Aldo on November 18, 2006, 11:03:43 am

Title: Problem with google spider
Post by: Aldo on November 18, 2006, 11:03:43 am
There are >38.000 Virtuemart pages indexed by google with this message
"Info: Your browser does not accept cookies. If you want to put products into your cart ..".
how to avoid this ?
Do you have solutions ?

Thanks
Aldo
Title: Re: Problem with google spider
Post by: Soeren on November 20, 2006, 16:30:42 pm
38.000 pages of your site or overall?

The cookie check was introduced to tell a customer why his/her cart stays empty. Cookies must be enabled...
To avoid this please comment out the line 60 in the file /classes/ps_session.php:

Code: [Select]
$this->doCookieCheck(); // Introduced to check if the user-agent accepts cookies
ciao, Sören
Title: Re: Problem with google spider
Post by: Aldo on November 21, 2006, 10:34:58 am
Thanks a lot...

Aldo
Title: Re: Problem with google spider
Post by: Bjorn A. Solstad on February 06, 2008, 14:01:21 pm
38.000 pages of your site or overall?

The cookie check was introduced to tell a customer why his/her cart stays empty. Cookies must be enabled...
To avoid this please comment out the line 60 in the file /classes/ps_session.php:

Code: [Select]
$this->doCookieCheck(); // Introduced to check if the user-agent accepts cookies
ciao, Sören

I believe it's better to comment out line 87 that says:
mosRedirect( $this->url( $mm_action_url . 'index.php?' . mosGetParam($_SERVER,'QUERY_STRING').'&vmcchk=1' ) );

The message goes away, and the browser does not redirect.

Any thoughts?
Title: Re: Problem with google spider
Post by: fidel on March 28, 2008, 17:35:58 pm
Why do you consider this method better than the previous suggestion?

Thanks.
Title: Re: Problem with google spider
Post by: RCheesley on December 14, 2008, 12:35:54 pm
I had this problem too - seems a bit of an issue as there are a multitude of questions on forums.  Completely messed up the SEO for my site which has probably resulted in huge loss in sales .. *sigh*