Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove columns from front page only


schlegk

Recommended Posts

Posted

I'd like to remove the left and right hand columns from the very first page only. I'd like to do something like this: https://www.ladybuglounge.com/ .

 

Also, when you click on the top menu of this site there is a page called product_browser.php that shows only the menu items in that category. Does anyone know if there are any contributions to do this? I've checked the forum for hours now and can't find anything!

 

Thank you!

Karim

Posted

If you simply want to remove the columns on index.php you can just put some PHP logic around the column inclusions... something like

CHANGE:

	<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>

TO:

<?php if ($_GET['cPath']) { ?>
<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>
<?php } ?>

 

Note: I have not checked this code, but i think it should work.

 

Basically it looks to see if there is cPath (category number) in the GET properties (the URL) to see if it is the homepage. If there is, it displays the code. If not, it doesn't.

 

It would be much the same for column right too:

<?php if ($_GET['cPath']) { ?>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
<?php } ?>

 

Their product browser page is a highly modified version of osC. Highly doable, but not with a forum post ;)

 

Hope that helps.

 

Rob

Rob Bell - Inspired Graphix

Customising osCommerce in Australia, and the world!

View my profile for web and email links.

 

I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture.

However viewing my profile may provide links to my website or something like that which you may find useful.

Posted
If you simply want to remove the columns on index.php you can just put some PHP logic around the column inclusions... something like

CHANGE:

	<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>

TO:

<?php if ($_GET['cPath']) { ?>
<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>
<?php } ?>

 

Note: I have not checked this code, but i think it should work.

 

Basically it looks to see if there is cPath (category number) in the GET properties (the URL) to see if it is the homepage. If there is, it displays the code. If not, it doesn't.

 

It would be much the same for column right too:

<?php if ($_GET['cPath']) { ?>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
<?php } ?>

 

Their product browser page is a highly modified version of osC. Highly doable, but not with a forum post ;)

 

Hope that helps.

 

Rob

 

PERFECT! Thank you!

Karim

  • 4 weeks later...
Posted

If you need any help with this I am the developer of LadyBugLounge and can offer my services. Go to cgstudio.com and contact me through the website should you need us. thank you and were glad that so many have commented on this site. thanks

 

I'd like to remove the left and right hand columns from the very first page only. I'd like to do something like this: https://www.ladybuglounge.com/ .

 

Also, when you click on the top menu of this site there is a page called product_browser.php that shows only the menu items in that category. Does anyone know if there are any contributions to do this? I've checked the forum for hours now and can't find anything!

 

Thank you!

Karim

Archived

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

×
×
  • Create New...