Guest awhyte Posted October 14, 2005 Share Posted October 14, 2005 The currency wont change in the new version, keeps resetting to default. I also did the email fix but im not recieving any emails now when an order is made. Quote Link to comment Share on other sites More sharing options...
Guest darmarat Posted October 15, 2005 Share Posted October 15, 2005 Also having the same problem does try to change but defaults back to Canuck buck Any one else having this problem and found a solution? I did a search and this is all I found so far. Darcy Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted October 15, 2005 Share Posted October 15, 2005 I found that this happens to me only when i add a new currency in an other language (Greek) but if its in English No Problems occur. Is anyone of you two doing this or are they typed in English or no added custom currency? Quote Link to comment Share on other sites More sharing options...
Guest awhyte Posted October 15, 2005 Share Posted October 15, 2005 im only using USD and CAN dollar on my store. It will only use the one set to default. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 15, 2005 Share Posted October 15, 2005 The currency wont change in the new version, keeps resetting to default. I also did the email fix but im not recieving any emails now when an order is made. I have the same problem, but i also have the problem that the language files also is resetting to default (deafult is norwegian and i have added norwegian kr as default). Quote Link to comment Share on other sites More sharing options...
Guest shawnlovebaobao Posted October 15, 2005 Share Posted October 15, 2005 i was having two problems 1: i can;t change my languae other than english 2: i can;t change my currency to British Pounds or Euros anyone got an idea of how to fix these? thanks a lot Quote Link to comment Share on other sites More sharing options...
Guest shawnlovebaobao Posted October 15, 2005 Share Posted October 15, 2005 can you guys check for me? http://www.trustedfashionseller.com/FashionWorld/index.php see, i can't change currency or language Quote Link to comment Share on other sites More sharing options...
Guest skekum Posted October 15, 2005 Share Posted October 15, 2005 shawnlovebaobao, I just tried a few times and can't change your language either. Skekum Quote Link to comment Share on other sites More sharing options...
Guest darmarat Posted October 15, 2005 Share Posted October 15, 2005 I'm using Canadian and U.S. currencies defaulted to Canadian will not change to U.S. Also language will not change. Same problem (only default language working) Anyone with a solution yet? Darcy Quote Link to comment Share on other sites More sharing options...
Guest ZOIS Posted October 15, 2005 Share Posted October 15, 2005 Had the same problem. Overwrite switch.php with the previous version. Now works fine. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 15, 2005 Share Posted October 15, 2005 While that may have worked, here is a corrected version of /switch.php. <?php /* +-------------------------------------------------------------------------- |  CubeCart v3.0.5 |  ======================================== |  by Alistair Brookbanks | CubeCart is a Trade Mark of Devellion Limited |  (c) 2005 Devellion Limited |  Devellion Limited, |  Westfield Lodge, |  Westland Green, |  Little Hadham, |  Nr Ware, HERTS. |  SG11 2AL |  UNITED KINGDOM |  http://www.devellion.com | UK Private Limited Company No. 5323904 |  ======================================== |  Web: http://www.cubecart.com |  Date: Thursday, 13 October 2005 |  Email: info (at) cubecart (dot) com | License Type: CubeCart is NOT Open Source Software and Limitations Apply |  Licence Info: http://www.cubecart.com/site/faq/license.php +-------------------------------------------------------------------------- | switch.php |  ======================================== | Switch between language and currency vars +-------------------------------------------------------------------------- */ include_once("includes/ini.inc.php"); // INCLUDE CORE VARIABLES & FUNCTIONS include_once("includes/global.inc.php"); include_once("includes/functions.inc.php"); // initiate db class include_once("classes/db.inc.php"); $db = new db(); include_once("includes/functions.inc.php"); $config = fetchDbConfig("config"); // get session data include_once("includes/session.inc.php"); // change language if necessary making sure it is cleaned against cross site scripting!!! Or else there'd be truble!! if( (isset($_GET['lang'])) && (!empty($_GET['lang'])) && (isset($_SESSION['ccUser'])) && eregi("^[a-z0-9_]",$_GET['lang'])){  $sessData['lang'] = $db->mySQLSafe($_GET['lang']);  $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("&","&",$_GET['r']));  } else {  header("Location: index.php");  }  exit;  } elseif( (isset($_GET['currency'])) && !empty($_GET['currency']) && (isset($_SESSION['ccUser'])) &&  ereg("^[A-Z]",$_GET['currency'])){  $sessData['currency'] = $db->mySQLSafe($_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("&","&",$_GET['r']));  } else {  header("Location: index.php");  }  exit; } else {  header("Location: index.php");  exit; } ?> It works like a charm. There were important changes made in how and when the sessions were initiated. If these aren't followed, other things will break. I simply included those changes in the switch.php file. And if you don't want to do that, here's a downloadable version for you: http://www.swscripts.com/downloads/switch.zip :) Quote Link to comment Share on other sites More sharing options...
Guest shawnlovebaobao Posted October 15, 2005 Share Posted October 15, 2005 thanks, sir williams , the problem was solved Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted October 17, 2005 Share Posted October 17, 2005 Sir William the legend strikes again. Thanks. The session got lost from that page. Quote Link to comment Share on other sites More sharing options...
Guest darmarat Posted October 17, 2005 Share Posted October 17, 2005 Thank you for the fast response Sir William Solved my problem darmar Quote Link to comment Share on other sites More sharing options...
Guest saraj63 Posted April 18, 2006 Share Posted April 18, 2006 Apparently I am toooo blonde. I don't understand where to paste this code to and am I adding this code to the existing or total replacement of existing? Thanks for your help! Sara While that may have worked, here is a corrected version of /switch.php. <?php /* +-------------------------------------------------------------------------- |  CubeCart v3.0.5 |  ======================================== |  by Alistair Brookbanks | CubeCart is a Trade Mark of Devellion Limited |  (c) 2005 Devellion Limited |  Devellion Limited, |  Westfield Lodge, |  Westland Green, |  Little Hadham, |  Nr Ware, HERTS. |  SG11 2AL |  UNITED KINGDOM |  http://www.devellion.com | UK Private Limited Company No. 5323904 |  ======================================== |  Web: http://www.cubecart.com |  Date: Thursday, 13 October 2005 |  Email: info (at) cubecart (dot) com | License Type: CubeCart is NOT Open Source Software and Limitations Apply |  Licence Info: http://www.cubecart.com/site/faq/license.php +-------------------------------------------------------------------------- | switch.php |  ======================================== | Switch between language and currency vars +-------------------------------------------------------------------------- */ include_once("includes/ini.inc.php"); // INCLUDE CORE VARIABLES & FUNCTIONS include_once("includes/global.inc.php"); include_once("includes/functions.inc.php"); // initiate db class include_once("classes/db.inc.php"); $db = new db(); include_once("includes/functions.inc.php"); $config = fetchDbConfig("config"); // get session data include_once("includes/session.inc.php"); // change language if necessary making sure it is cleaned against cross site scripting!!! Or else there'd be truble!! if( (isset($_GET['lang'])) && (!empty($_GET['lang'])) && (isset($_SESSION['ccUser'])) && eregi("^[a-z0-9_]",$_GET['lang'])){  $sessData['lang'] = $db->mySQLSafe($_GET['lang']);  $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("&","&",$_GET['r']));  } else {  header("Location: index.php");  }  exit;  } elseif( (isset($_GET['currency'])) && !empty($_GET['currency']) && (isset($_SESSION['ccUser'])) &&  ereg("^[A-Z]",$_GET['currency'])){  $sessData['currency'] = $db->mySQLSafe($_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("&","&",$_GET['r']));  } else {  header("Location: index.php");  }  exit; } else {  header("Location: index.php");  exit; } ?> It works like a charm. There were important changes made in how and when the sessions were initiated. If these aren't followed, other things will break. I simply included those changes in the switch.php file. And if you don't want to do that, here's a downloadable version for you: http://www.swscripts.com/downloads/switch.zip Quote Link to comment Share on other sites More sharing options...
Guest saraj63 Posted April 18, 2006 Share Posted April 18, 2006 OK, I found the switch.php file and replaced it but it still isn't working for me. Any other suggestions? Quote Link to comment Share on other sites More sharing options...
Guest groovejuice Posted April 18, 2006 Share Posted April 18, 2006 @saraj63 which version of CubeCart are you using? This fix is for an old release and you likely should not be using it. Your problem is probably with the settings you're using in the ACP, and not a bug. Quote Link to comment Share on other sites More sharing options...
Guest ekka Posted July 5, 2006 Share Posted July 5, 2006 I'm using version 3.0.10 and when a customer changes the language or currency he will be logged out. This is off course a problem. As I understand is the fix posted in this thread for an old version and the switch.php posted here is included in version 3.0.10. In the post above groovejuice is talking about settings in the control panel. I have tried all kind off settings that I can think of as relative to the problem but without any luck. Can someone please instruct me how to work around this problem and/or solve it for good? Thanks in advanced/ekka @saraj63 which version of CubeCart are you using? This fix is for an old release and you likely should not be using it. Your problem is probably with the settings you're using in the ACP, and not a bug. 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.