Jump to content
Latest News: (loading..)
chilinotes

activated or non activated languages

Recommended Posts

Hi.

 

I search for a way to activate or deactivate languages in the frontend.

I like to have the option to add data in the backend, e.g. products description, whether a language is visible in the frontend or not.

 

Thank you

Oliver

 


Sometimes systems that should not work, work nevertheless.

Share this post


Link to post
Share on other sites

I don't think there is an easy way, you will have to modify the code on the catalog side in includes/application_top

 

// set the language
  if (!tep_session_is_registered('language') || isset($_GET['language'])) {
    if (!tep_session_is_registered('language')) {
      tep_session_register('language');
      tep_session_register('languages_id');
    }

    include(DIR_WS_CLASSES . 'language.php');
    $lng = new language();

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

    $language = $lng->language['directory'];
    $languages_id = $lng->language['id'];
  }

a quick hack would just be to set these last 2 lines to the values you want/need


KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Share this post


Link to post
Share on other sites

Thank you very much

I keep it in mind.

 

best wishes

Oliver


Sometimes systems that should not work, work nevertheless.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×