Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove Language Option on Front Page (German and Spanish)


EnigmaBiz

Recommended Posts

Remove Language Option on Front Page (German and Spanish)

 

I have searched and checked front page option and where do you go/what file

to edit and remove the Language option. I only want English and I removed the

directories from /local/languages and left /eng only. But there is no need for

the front page to display the "flag" once there is only one/English default.

 

Do I have to edit the /en/default.php page and remove it from there or is it

in mySQL database settings?

Link to comment
Share on other sites

Edit /catalog/includes/column_right.php

 

  if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

   include(DIR_WS_BOXES . 'languages.php');

   include(DIR_WS_BOXES . 'currencies.php');

 }

 

Change to:

 

  if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

//    include(DIR_WS_BOXES . 'languages.php');

   include(DIR_WS_BOXES . 'currencies.php');

 }

 

This leaves you the option to later add it back in easily.

Link to comment
Share on other sites

Hey Linda,(or someone)

What about the same for currencies - I mean, I did this for languages and it is beaut! I'd like the code for not showing languages as well!!! :D :D :D :D :D :D

Link to comment
Share on other sites

Thx Linda,

I get it - its the "//". That worked great. Can I use these "//" to remove "New products" box under the body text?? Don't need to use it just yet!!!

 

Ken :roll:

Link to comment
Share on other sites

It's very similar. In default.php:

 

          <tr>

           <td><br><?php // include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

         </tr>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...