Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Side Bars


Splatter

Recommended Posts

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)

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

 

5. Now open the second file to edit: catalog/index.php

6. 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">

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

8. 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">

9.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">

10.Repeat steps 6 to 9 for the other files that you want to change the width in otherwise the changes will only be to the index page and pages loaded into the index page. This can be achieved by using a find and replace search function.

11.Save your file changes and upload to your server

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