Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

2 language in admin but 1 in front end ?


theoisak

Recommended Posts

Look for the following code in catalog/includes/application_top.php:

    if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {
      $lng->set_language($HTTP_GET_VARS['language']);
    } else {
      $lng->get_browser_language();
    }

and replace it with:

/*
    if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {
      $lng->set_language($HTTP_GET_VARS['language']);
    } else {
      $lng->get_browser_language();
    }
*/

    $lng->set_language('your_language_code');

replace your_language_code with the code of the language you'd like to force everyone on.

That should work!

:heart:, osCommerce

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...