Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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

 

Link to comment
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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...