Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

language switch currencie should stay!


dexters

Recommended Posts

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

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!

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

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

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

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!

What is your setting with admin->configuration->Switch To Default Language Currency ?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...