frank.uray Posted December 30, 2004 Posted December 30, 2004 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
juniorprg Posted December 30, 2004 Posted December 30, 2004 CHeck here http://www.oscommerce.info/ its the offical site abt installation and customization of OSC l8ter
frank.uray Posted December 30, 2004 Author Posted December 30, 2004 thanks for the information, but I cannot find something about change the width of the categories box ...:-((
Guest Posted December 30, 2004 Posted December 30, 2004 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.
Guest Posted December 30, 2004 Posted December 30, 2004 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:
Guest Posted December 31, 2004 Posted December 31, 2004 Alternative solution can be found on http://www.oscommerce.com/community/contributions.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.