Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing left column width or removing right column


WebDev22

Recommended Posts

I need to change the left column width to 140 but don't want the right column changed. I did a search on this and can only find solutions for changing both columns. I searched Google as well.

Link to comment
Share on other sites

To add to my post above, one option would be to make the change in application_top.php, changing both columns widths, and then removing the right column altogether. This would require putting the shopping cart box in the right side of the header.

Link to comment
Share on other sites

Hey Brett,

 

I remember seeing either here in the forums or in the knowledge base something discussing just what you want to do (left & right columns different widths).

 

I think it dealt with making the change in the application_top.php

 

From this:

// customization for the design layout

define('BOX_WIDTH', 228); // how wide the boxes should be in pixels (default: 125)

 

To something like this:

// customization for the design layout

define('LEFT_BOX_WIDTH', 228; 'RIGHT_BOX_WIDTH', 100); // how wide the boxes should be in pixels (default: 125)

 

Don't quote me on it though, my memory isn't that good.

 

What did I eat for lunch again? crying.gif

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

Brett,

 

Jim was partially correct with the edit to application_top.php.....but you also need change index.php and every other root file that calls the column_right.php

If you want the left column to be 140px then change this line in application_top.php from:

 

// customization for the design layout

define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

 

to this:

 

// customization for the design layout

define('BOX_WIDTH', 140); // how wide the boxes should be in pixels (default: 125)

 

and also add this line directly under it

 

// customization for the design layout

define('BOX_WIDTH_RIGHT', 125); // how wide the boxes should be in pixels (default: 125)

 

 

then, in index.php and every other root file that calls the column_right.php

 

change this:

 

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

 

to this:

 

<td width="<?php echo BOX_WIDTH_RIGHT; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

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

<!-- right_navigation_eof //-->

</table></td>

 

 

that's it.

 

 

Chris

Link to comment
Share on other sites

Thanks Chris for clearing that up! thumbsup.gif

 

I thought I was missing something... whistling.gif

 

biggrin.gif

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

Zegar,

 

MOST of the files in the root directory contain this:

 

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

 

so you will have to change all of the files with the above code in them to:

 

<td width="<?php echo BOX_WIDTH_RIGHT; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

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

<!-- right_navigation_eof //-->

</table></td>

 

 

Chris

Link to comment
Share on other sites

  • 3 weeks later...

Quick question here guys as I kind of have the same problem. Our categories were wrapping over to 2 lines so I made the change mentioned above to adjust the size of the left column, now they appear on one line. However the right column is now moving over off of the page. Any ideas on how I can fix this?

 

You can see what I mean at http://reddevildistributing.com

 

Thanks in advance!

 

Todd

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...