Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing the right-hand column


Cowzor

Recommended Posts

I'm wanting combine the right hand column with the right hand column

 

I can see how to combine the column_left.php and columb_right.php

 

Problem is I'm not sure which file is used to add those files to it, I don't think it's the index.php as I've had a look in there. This is so that I can remove the inclusion is column_right.php from occuring

 

:thumbsup:

Link to comment
Share on other sites

Hey, not sure if i follow you entirely but...

 

If you want to combine the right hand column into the left, just take the include calls from /includes/column_right.php (which call the specific boxes) and put them into /includes/column_left.php.

 

Then you will have to open each .php page in the catalog directory (e.g index.php, product_info.php etc) and find the following line...

 

<!-- right_navigation //-->

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

<!-- right_navigation_eof //-->

 

Delete that, and it will remove the right hand column entirely from the page.

 

I dont like using the right hand column so have done the same as you on www.navonline.co.uk, take a look to see what i mean.

 

If you have any more problems post back and i will be more than happy to help further.

Link to comment
Share on other sites

it is better to do this

 

<?php
/*
   <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>
*/
?>

 

As this removes the entire <td> otherwise you will allways have a blank <td></td>

 

You will also need to alter the includes/boxes/reviews.php

 

change each occurance of

$review

to

$reviews

 

otherwise you will have errors in your reviews section whereby no info will be shown.

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

I did the following...

 

 

it is better to do this

 

<?php
/*
   <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>
*/
?>

 

 

 

But now the right column is still displayed, and I have " /* */ " printed at the top of each page

 

Here is section of the php file/s

 

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

 

 

Any thoughts?

Link to comment
Share on other sites

yes use the code given which has a

<?php

at the beginning and a

?>

at the end.

 

Your code does not equal my code given. :thumbsup:

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Oh  :blush:

 

I thought the imitial and ending <?php etc was just to show the code was starting for your example .. thanks again  ;)

 

Sometimes you need to turn the php on and off, that's what's going on here. The method Steve showed using slashes and asterisks, often referred to as commenting out code is a better way to go than deleting code in my opinion, especially for a site in development, because it is easier to put the column back in if you have a change of heart. I removed the right column at one point too, but it made sense to put it back in, not long after I made the change, as my site evolved.

 

Jeremy

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...