dexters Posted February 19, 2007 Share Posted February 19, 2007 when i change my language from german to enlish the currencie switches also, but i want that the english & german speaking visiters the € euro. where can i change this that a currencie only switches only if the user choose this. thank you! Link to comment Share on other sites More sharing options...
Velveeta Posted February 19, 2007 Share Posted February 19, 2007 when i change my language from german to enlishthe currencie switches also, but i want that the english & german speaking visiters the € euro. where can i change this that a currencie only switches only if the user choose this. thank you! You may want to check the form for the language dropdown box... It could be that it's not storing the currency in it as a hidden variable, so when you switch language, it's just redirecting back to the page with the language variable set in the url, but not the currency, so it's defaulting to the store's default currency... If you pass the currency value as a hidden variable, you can then redirect with that variable in the url also, so that it should be maintained... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
dexters Posted February 19, 2007 Author Share Posted February 19, 2007 You may want to check the form for the language dropdown box... It could be that it's not storing the currency in it as a hidden variable, so when you switch language, it's just redirecting back to the page with the language variable set in the url, but not the currency, so it's defaulting to the store's default currency... If you pass the currency value as a hidden variable, you can then redirect with that variable in the url also, so that it should be maintained... Richard. hmm...sounds complex? i do not real understand how i can change this. :blink: but maybe i am only too tired. Link to comment Share on other sites More sharing options...
Velveeta Posted February 19, 2007 Share Posted February 19, 2007 hmm...sounds complex? i do not real understand how i can change this. :blink: but maybe i am only too tired. I just took a look at the language dropdown box code, and it looks pretty simple to fix... Edit your includes/boxes/languages.php file, find this line: $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> '; And change it to this: $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> '; Basically just remove the 'currency' entry from the tep_get_all_get_params array... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
dexters Posted February 19, 2007 Author Share Posted February 19, 2007 thank you richard for your fast answer! i will try this. Link to comment Share on other sites More sharing options...
wheeloftime Posted February 20, 2007 Share Posted February 20, 2007 when i change my language from german to enlishthe currencie switches also, but i want that the english & german speaking visiters the € euro. where can i change this that a currencie only switches only if the user choose this. thank you! What is your setting with admin->configuration->Switch To Default Language Currency ? Link to comment Share on other sites More sharing options...
dexters Posted February 20, 2007 Author Share Posted February 20, 2007 admin->configuration->Switch To Default Language Currency oh no! thats it! ;) thx to howart too! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.