Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

get rid of a column


h4ppy_girl

Recommended Posts

I'm trying to do away with column_right. Can anyone tell me how to do this? What files need to be changed? thanks!

"Look closely at the present you are constructing. It should look like the future you dream of."

-Alice Walker

Link to comment
Share on other sites

There is a lot that utilises the column_right.php file. When someone is logged in it will contain a box that shows the shopping cart and subtotal. Your best sellers are displayed there. There are other features that work out of this right column also. If you are aware of this and still want to remove the right column altogether I might try the following (I make no guarantees):

 

Simpler Option:

1. duplicate the column_right.php file and name the copy column_right.php.old

 

2. Open column_right.php and delete everything between "<?php" and the end tag, "?>"

 

Again I have not tested this, but if you make sure you duplicate the file if it does not work you can "save as" the column_right.php.old as column_right.php and be back to where you were.

========================

 

Option 2:

1. Back up your catalog directory somewhere.

2. Do a find all for : <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

3. Delete each of these REQUIRE statements.

 

Hope this helps.

Link to comment
Share on other sites

Check this out, the Knowledge base will provide a good start.

Here

 

Instead of deleting anything you can just comment the line out. Thats what I did, just in case I ever want to turn it back on, it's still there.

Find this in each file <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

and do this:

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

 

 

Good Luck,

Moon

"Woohoo, Just Havin Funnn!"

Link to comment
Share on other sites

Thanks. Now that I've gotten rid of the column how do I make the center column wider?

http://texasboatsandyachts.com/catalog/index.php

 

Moonbeam's suggestion of commenting out the code is a much better way of solving the problem. It is always good to be able to go back.

 

If you want to widen the middle column you will need to start with the catalog/index.php page and locate this section of code:

 

======================================================

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="main"><?php echo tep_customer_greeting(); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="main"><?php echo TEXT_MAIN; ?></td>

======================================================

 

Then you will need to change the section that is in red above so that your code looks like this:

 

=====================================================

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="main"><?php echo tep_customer_greeting(); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '500px', '10'); ?></td>

</tr>

<tr>

<td class="main"><?php echo TEXT_MAIN; ?></td>

=====================================================

 

Play with the value of the width of the transparent gif until the column is the width you desire. This is in essence forcing a wider element that happens to be invisible into a smaller location of the table column which causes the table column to be the width of the transparent gif. I have not tested this but this is how I would begin. Then you will need to change each of the products pages, checkout pages and so forth so that they all look the same.

 

Hope this helps.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...