Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Make the left column wider?


Guest

Recommended Posts

you could hard code the width or use this which will give you seperate widths for left and right columns

 

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.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...