Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing width of column on left side


mattyb

Recommended Posts

Posted

I'm just curious as to how I go about changing the width of the column on the left hand side. My online store has fairly long category names and they overlap onto subsequent lines which makes reading of the categories somewhat difficult. I've found where the column widths are but they say 100%. I'm not sure on how to go about doing this just because I'm a newbie when it comes to php so any help is greatly appreciated. Thanks in advance.

Posted

You could try this

INSTRUCTIONS

 

1. Open catalog/includes/application_top.php

2. Find the line (around line 47) that reads

// customization for the design layout
 define('BOX_WIDTH', 145); // how wide the boxes should be in pixels (default: 125)

 

3. after this, add the following lines ....

// customization for the design layout left column
 define('BOX_WIDTH_LEFT', 165); // how wide the boxes should be in pixels (default: 125)
 
// customization for the design layout right column
 define('BOX_WIDTH_RIGHT', 125); // how wide the boxes should be in pixels (default: 125)

 

6. (set your own width preferences (I have used 165 pixels for the left column and 125 pixels for the right) Save file

 

7. Now open the second file to edit: catalog/default.php

8. Find the first line to change at (around line 51) that reads

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

9. REPLACE this line, with the following line ....

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

10. Find the second line to change at (around line 325) that reads

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

11.REPLACE this line with the following line....

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

5. save the file and upload your 2 changed files to your active installation.

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.

Posted

remember that you will need to change the code in all the files as this has only changed the index page have a look at your other pages to see what I mean

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.

Archived

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

×
×
  • Create New...