Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Width of Categories Box ...


frank.uray

Recommended Posts

Posted

Hi all

 

I am new in using oscommerce.

Can somebody tell me how I can change the width of the categories box on the left side?

 

Is there anywhere a documentation about things like that?

How to change layout of my shop?

 

Thanks for any help!

 

Best regards

Frank Uray

Posted

Look for these lines in includes/application_top.php

 

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

Change 125 (the default value) to what you require.

 

This will change the width on both left and right sides.

Posted

It is at least 10 times more complicated to change the left side only.

You have to manually edit many .php pages.

 

For example in catalog/index.php (the homepage)

 

Edit the BOX_WIDTH with a hard-coded value or you can create a new constant in includes/application_top.php by using PHP's define() function.

 

    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
   </table></td>

Have fun! :thumbsup:

Archived

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

×
×
  • Create New...