Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add Right Column Define


Guest

Recommended Posts

Posted

The following is out of the knowledge base. I did everything and checked it twice afterwards. It allows me to adjust the right column width but wont let me make it any smaller than the left column width. I can make it bigger than left column width but need it to be smaller. I searched the forums and couldn't find anything. Any suggestions?

 

Add Right Column Define

 

The right column can have it's own define so a different width can be set along with

different colors, etc. In the example below the define is called 'BOX_WIDTH_RIGHT'.

To make a new define open includes/application_top.php about line 58 and find:

// customization for the design layout

define('BOX_WIDTH', 160); // how wide the boxes should be in pixels (default: 125)

Add a new define for the right column only by adding this code:

define('BOX_WIDTH_RIGHT', 120); // how wide the right column should be in pixels

Change this code in each page in the catalog folder about line 334 for the right column

only:

<!-- body_text_eof //-->

<td width="<?php echo BOX_WIDTH_RIGHT; ?>"><table border="0" width="<?php

echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="0">

<!-- right_navigation //-->

 

mk

Posted

BOX_WIDTH is the standard (the minimum), so if you wish to have BOX_WIDTH_RIGHT smaller then change it to:

 

define('BOX_WIDTH_LEFT', 160);

define('BOX_WIDTH_RIGHT', 120);

 

And then apply those changes to all of the root level files.

 

Vger

Archived

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

×
×
  • Create New...