Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to make Language function work outside Language Box


JackChow97

Recommended Posts

My site running v2.3 is working on two languages with the Language icons in the Language Box. Now I wish to disable the box and put the two language icon outside, say in the header. I couldn't find the code where the icons can be set dynamically to point to the corresponding page on another language when clicked. Would appreciate any advice.

Link to comment
Share on other sites

Copy the code from the language box.

 

/includes/modules/boxes/bm_languages.php

 

lines 36 - 56. Echo the $data, rather than add it to a block.

 

echo $data;

 

approx line 54

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...