Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Columns


scotch33

Recommended Posts

Posted

Hi there,

 

I have a side navigation, fixed width site and am trying to get OSC to fit this layout.

 

I need to do one of the following...

 

1. have the columns different widths so I can use the left to place a copy of my nav bar and put all the column stuff in the right - I know how to change the wiidths in application_top.php, but how do i make them different widths?

 

2. Alternatively - how do I remover the left column completely and replace its space with my navigation bar?

 

Any ideas?

 

Cheers!

 

John.

Posted

If you want to control each width, you need to add another define in application_top for the other column and change all of the files in the root directory to use that value.

 

To remove the left column, just replace teh code in includes/column_left.php with your code. You may need to alter the code that calls the left column in most of the files in the root to make it space the way you want.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Thanks.

 

For other's reference, what I actually did was replace the table cell that contains the include for left column with my own cell - fixing the width as per my non shop html and then hard coding the navigation within it. This has worked a treat.

 

Look in index.php in the root. Below is an example of what I did on that page

 

The code I replaced was...

 

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

<!-- left_navigation //-->

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

<!-- left_navigation_eof //-->

</table></td>

 

I replaced it with (as an example)...

 

<td width="190" valign="top"><table border="0" width="190" cellspacing="0" cellpadding="0">

MY NAV CODE WENT HERE

</table></td>

 

Hope that helps anyone who needs to do this.

Archived

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

×
×
  • Create New...