Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

increase width of left column


Guest

Recommended Posts

I need to increase the width of the left hand column. I have already installed the fixed width contribute on this site.

 

how do i do this?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

 

I have my boxes on the right colom suddenly very wide, maybe 1000 pixels or so, no idea why, does anyone have an idea ? i tried to use code above to fix it but this does not help me... Thanks in advance !!!

 

GJ

Link to comment
Share on other sites

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

 

Thank you these were really clear excellent instructions. But it did seem to over write my fixed width for the site. I need the entire oscommerce to be a fixed width then need to change the width of the column

Link to comment
Share on other sites

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

 

OK Tried it again with a fresh page and it worked THANKYOU again :) :D

Link to comment
Share on other sites

  • 3 years later...

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

thanks, you are my angel... :rolleyes:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...