osCommerce: Disable Language Box from displaying, Disable Left Column / Right Column regions

If you’ve wondered how to disable the Language region in the right-column from appearing then it’s simple. This tutorial goes for disabling other regions such as the Reviews, Specials, What’s New, Quick Find from showing or displaying on the pages.

osCommerce Language Region

osCommerce Language Region

Disable regions from displaying from right column

Open up the file includes/column_right.php:

Then search for this section:

  if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
    include(DIR_WS_BOXES . 'languages.php');
    include(DIR_WS_BOXES . 'currencies.php');

Then comment out the languages.php line like so:

  if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
    //include(DIR_WS_BOXES . 'languages.php');
    include(DIR_WS_BOXES . 'currencies.php');

You can do this for any region in the left or right columns. For example, the Reviews section is located on this line:

require(DIR_WS_BOXES . 'reviews.php');

It’s pretty easy to identify the regions or sections. The left column section if found in the file includes/left_column.php.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Share

You must be logged in to post a comment.