HomeAfter Sale Support Working with OsCommerce How to turn infoboxes on/off

How to turn infoboxes on/off


There is a possibility to turn on/off all the standard OsCommerce infoboxes. Due to design some of them are turned off but you can easily turn then on in the " /includes/column_left.php" or " /includes/column_right.php" files.
All you need is to remove comment of the appropriate box:

<?php
/*
  $Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

  if ((USE_CACHE == 'true') && empty($SID)) {
    echo tep_cache_categories_box();
  } else {
    include(DIR_WS_BOXES . 'categories.php');
  }

  if ((USE_CACHE == 'true') && empty($SID)) {
   // echo tep_cache_manufacturers_box();
  } else {
  //  include(DIR_WS_BOXES . 'manufacturers.php');
  }

// require(DIR_WS_BOXES . 'whats_new.php'); // This is for "Latest Products" infobox 
//  require(DIR_WS_BOXES . 'search.php');
//  require(DIR_WS_BOXES . 'information.php');
?>


The string for box looks like require(DIR_WS_BOXES . 'THE_BOX_FILE_NAME.php');
where THE_BOX_FILE_NAME is the name of the box.

Note! You can use this feature starting from the template #13077 only.

See also:
How to turn infoboxes on/off demo movie