View Single Post
  #398  
Old 12-02-2011, 10:43 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: CDSEO Pro - Complete SEO Solution - Custom Urls, Page Titles, Meta Data, Link Anchors

Quote:
Originally Posted by zebu
Hi Jon,

We have just installed CDSEO on a 4.4.4 cart still in Dev

I had an error with teh Survey section of our cart. The survey completed message doesn't pop up when a user completes the survey. The message does appear if you have the option ticked to display survey results. If you have display survey results un-ticked, we dont get the survey completed pop up.


I had a ticket logged with Xcart - who resolved.

I quote x-carts reply:
------------------------------.

The investigation revealed that the issue is caused by the following custom code added to <xcart_dir>/home.php script on the server:
Code: php
include $xcart_dir."/modules/cdseolinks/cdseo_redirects.php"; This custom script performs extra redirects which broke default X-Cart functionality.

In order to resolve the problem you need to contact the authors of this modification.

To workaround the issue I have commented out the custom code replacing it with this code:
Code: php
//include $xcart_dir."/modules/cdseolinks/cdseo_redirects.php";
----------------------------------------------
The CDSEO still seems to work. But what is the implication of removing this line of code?


Cheers
Zane

I've solved this for Zane but if anybody else is interested in this solution, it is as follows.

PROBLEM: X-Cart creates a session with the message and redirects it to home.php where the message is cleared. CDSEO then redirects home.php to / and the message has already been cleared and thus is not displayed.

SOLUTION:
Open modules/Survey/customer_survey.php

Find:
func_header_location('home.php');

Replace with:
func_header_location('/');

or if your site is not in root then replace with:

func_header_location($http_location);

COMMENT: Using home.php is a relic and should have stopped being used in x-cart as of 2003. Please x-cart start using index.php properly like every other piece of worthy software on the planet. There's no need for a splash page any more.
Reply With Quote