Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Left Column Changes


Guest

Recommended Posts

Hi everyone,

 

 

I have been playing with the left_column.php trying to get it so 2 boxes are only visible when signed in. I would like the information box visible all the time, but the search and categories box only to appear once signed in. Anyone know how to do this ??

 

 

Here is my column_left.php

 

<?php
/*
 $Id: column_left.php 1739 2007-12-20 00:52:16Z hpdl $

 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 {
	require(DIR_WS_BOXES . 'search.php');
  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');

 require(DIR_WS_BOXES . 'information.php');
?>


 

 

Thanks for any help you can give.

 

 

 

Chris

Link to comment
Share on other sites

Try this...

 

 

<?php
/*
 $Id: column_left.php 1739 2007-12-20 00:52:16Z hpdl $

 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 {
       if (tep_session_is_registered('customer_id')) require(DIR_WS_BOXES . 'search.php');
       if (tep_session_is_registered('customer_id')) 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');

 require(DIR_WS_BOXES . 'information.php');
?>

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...