Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing left column only for first page of the default.php


johnnyosc

Recommended Posts

How would you remove the the left column only for the first page on the default? But then have it available for the second and third page of the default.php file. Since I'm using a javacript menu for my header, i dont want the left column to show up when first entering the site but i do want it to show for the categories pages and productinfo pages and so forth. Any ideas??? Thanks....

 

JohnnyOSC.

Link to comment
Share on other sites

This is just an idea... there are probably several ways to do this...

 

I would make a copy of 'default.php' and name it 'index.php'. Then edit index. php to remove the lines:

 

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

 

 

Since all the links in "index.php" will still point to "default.php" anything that a customer clicks will move them into that page.

 

Then just make sure that index.php has a higher priority than default.php. I think that is a setting in the apache conf. I'm using IIS so for me it is found in the web configuration panel.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...