Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

remove column_right


GeaX

Recommended Posts

Hi, what's the best to remove column_right?

Just deleting column_right.php causes my footer to disappear.

 

Someone once said deleting a line in index.php could work.

 

Regards

 

Introduction

 

The left or right side column can be removed entirely from the site layout design by removing the appropriate HTML and PHP code from all files in the main catalog folder only that display a page in the osCommerce installation.

 

 

This code will remove the entire right side column. You can find it in all the pages on which you don't want it to appear (like index.php, account.php, etc . Comment it out instead of completely removing it so you can put it back if you want (to do on all the pages that you don't want the right column):

 

 

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

 

and in the following body text for right navigation which is just below the above it should be this (to do on all the pages that you don't want the right column):

 

<!-- body_text_eof //-->

</tr>

</table>

<!-- body_eof //-->

Link to comment
Share on other sites

Introduction

 

The left or right side column can be removed entirely from the site layout design by removing the appropriate HTML and PHP code from all files in the main catalog folder only that display a page in the osCommerce installation.

This code will remove the entire right side column. You can find it in all the pages on which you don't want it to appear (like index.php, account.php, etc . Comment it out instead of completely removing it so you can put it back if you want (to do on all the pages that you don't want the right column):

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

 

and in the following body text for right navigation which is just below the above it should be this (to do on all the pages that you don't want the right column):

 

<!-- body_text_eof //-->

</tr>

</table>

<!-- body_eof //-->

 

Thanks :D

Link to comment
Share on other sites

Guys, I still DON'T really get it...

 

Just how do you remove the entire right column...???? I've been doing this one whole day and it still doesn't work...

 

How do you comment out the right column..??? Is it like this?

 

<!-- right_navigation //-->

<!-- <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> -->

<!-- right_navigation_eof //-->

 

Or using // or /* */ ???

 

And the last part:

<!-- body_text_eof //-->

</tr>

</table>

<!-- body_eof //-->

What should I do with it ???

Link to comment
Share on other sites

Guys, I still DON'T really get it...

 

Just how do you remove the entire right column...???? I've been doing this one whole day and it still doesn't work...

 

How do you comment out the right column..??? Is it like this?

 

<!-- right_navigation //-->

<!-- <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> -->

<!-- right_navigation_eof //-->

 

Or using // or /* */ ???

 

And the last part:

<!-- body_text_eof //-->

</tr>

</table>

<!-- body_eof //-->

What should I do with it ???

 

 

 

Let's look for example at conditions.php around line 73 (always before the end, the left navigation preceeds it all) :

 

<!-- body_text_eof //-->

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

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

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

<!-- footer_eof //-->

<br>

</body>

</html>

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

 

********************************************************

If you want a somple way to do it make it read like this (BACK UP FIRST!!!!!). Keep a backup because in this example there is no more reference to right navigation! Replace the above code in your pages with this :

 

<!-- body_text_eof //-->

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

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

<!-- footer_eof //-->

<br>

</body>

</html>

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

Link to comment
Share on other sites

  • 4 years later...

Introduction

 

The left or right side column can be removed entirely from the site layout design by removing the appropriate HTML and PHP code from all files in the main catalog folder only that display a page in the osCommerce installation.

 

 

This code will remove the entire right side column. You can find it in all the pages on which you don't want it to appear (like index.php, account.php, etc . Comment it out instead of completely removing it so you can put it back if you want (to do on all the pages that you don't want the right column):

 

 

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

 

and in the following body text for right navigation which is just below the above it should be this (to do on all the pages that you don't want the right column):

 

<!-- body_text_eof //-->

</tr>

</table>

<!-- body_eof //-->

 

 

 

thanks its work nice.. But can u tell me how to remove the right column in oscommerce 2.3.1??

 

Thanx in Advanced

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...