Guest intergemsuk Posted March 2, 2007 Share Posted March 2, 2007 Hi im having a bit of a problem with my currency changer. You can view it here: My Webpage currency changes fine on the homepage, however if it is changed on another page such as a category page ("rings" for example) it changes the currency but links back to the homepage and doesnt stay on the page you are viewing? Anyone got any ideas why its doing this or how i could resolve it? cheers, ben. Quote Link to comment Share on other sites More sharing options...
aPoLLo Posted March 2, 2007 Share Posted March 2, 2007 Hi gang. I am experiencing the same thing but thought it was the way Cubecart was supposed to function. A fix would be good. Cheers aPoLLo :blink: Quote Link to comment Share on other sites More sharing options...
Guest intergemsuk Posted March 2, 2007 Share Posted March 2, 2007 I had it working on my first install but have done something to mess it up :-( some advice would be greatly appriciated. Im using images instead of a drop down menu, however im guessing the way it links should be the same. :blink: Quote Link to comment Share on other sites More sharing options...
Guest intergemsuk Posted March 2, 2007 Share Posted March 2, 2007 Anyone got any ideas on this one? i haven't got a clue :blink: Quote Link to comment Share on other sites More sharing options...
Guest intergemsuk Posted March 5, 2007 Share Posted March 5, 2007 I Still cant get this to work, could anyone help me? please :) Quote Link to comment Share on other sites More sharing options...
aPoLLo Posted March 6, 2007 Share Posted March 6, 2007 I Still cant get this to work, could anyone help me? please I haven't had any luck either. Hoping someone will help with this. Hopefully not too difficult for the Guru's out there. Sadly I ain't one of them :) Quote Link to comment Share on other sites More sharing options...
Guest Posted April 18, 2007 Share Posted April 18, 2007 i *think* the problem lies within the switch.php } elseif((isset($_GET['currency'])) && !empty($_GET['currency']) && (isset($_SESSION['ccUser']))){ $sessData['currency'] = "'".preg_replace('/[^a-zA-Z0-9_\-\+]/', '',$_GET['currency'])."'"; $update = $db->update($glob['dbprefix']."CubeCart_sessions", $sessData,"sessId=".$db->mySQLSafe($_SESSION['ccUser'])); // detect possible spoofing URL's if(!eregi("http://",$_GET['r']) && !eregi("ftp://",$_GET['r']) && !eregi("https://",$_GET['r'])){ header("Location: ".str_replace("amp;","",treatGet($_GET['r']))); } else { header("Location: index.php"); } exit; i think its else { header("Location: index.php"); } is this the right one to just refresh the page instead of redirecting to index.php, and if so, how can you do it? Quote Link to comment Share on other sites More sharing options...
aPoLLo Posted April 19, 2007 Share Posted April 19, 2007 Hi yia folks. Thanks to someone else this is a fix for the Currency Jump menu not responding to the way it should. This is a work around and hence I was told that this could be either a Bug in the script or a hosting issue. In any rate here goes. Locate the switch.php file located in the root of your store and comment out the following lines: // detect possible spoofing URL's // if(!eregi("http://",$_GET['r']) && !eregi("ftp://",$_GET['r']) && !eregi("https://",$_GET['r'])){ header("Location: ".str_replace("amp;","",treatGet($_GET['r']))); // } else { // header("Location: index.php"); // } It worked for me. DON'T FORGET TO BACK UP YOUR ORIGINAL switch.php file before making any changes. Please let us know if it works for you. Cheers aPoLLo :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.