Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

removing right column


Muggins

Recommended Posts

Im removing the right column all together are these the only changes i need to make to all php files within catalog folder

 

<!-- body_text_eof //-->

<?php <ADDED HERE

if ( false ) {

?> <TO HERE

 

<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 <ADD PHP HERE

}

?> <TO HERE

</tr>

</table>

<!-- body_eof //-->

Or is it just select files that need changing.

Link to comment
Share on other sites

Yes, but there is another way thats more usable,

 

in all main pages replace:

 

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

 

with:

 

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

 

then create a new file called 'column_right_inc.php' that you place in your includes folder, in that you have:

 

<?php //column_right_inc.php right column Module ?>
<?php if(false) { // change to your required condition for showing 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>
<?php } ?>  

 

 

Then there is only one place you need to edit your condition(s)

 

 

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

  • 1 month later...

Yes, but there is another way thats more usable,

 

in all main pages replace:

 

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

 

with:

 

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

 

then create a new file called 'column_right_inc.php' that you place in your includes folder, in that you have:

 

<?php //column_right_inc.php right column Module ?>
<?php if(false) { // change to your required condition for showing 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>
<?php } ?>  

 

 

Then there is only one place you need to edit your condition(s)

 

When you say all main pages, which pages do you mean?

 

Thanks

Link to comment
Share on other sites

When you say all main pages, which pages do you mean?

 

Thanks

"Main pages" would be almost all the PHP files in the catalog folder.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...