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

VN:F [1.9.10_1130]
Rating: 0 (from 0 votes)
This entry was posted in E-commerce Templates, OsCommerce, OsCommerce Tutorials and tagged , . Bookmark the permalink.
 
  • Submit a ticket

    If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket


Track the comments