Results 1 to 4 of 4

column widths in oscommerce loaded v5

This is a discussion on column widths in oscommerce loaded v5 within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I'm reasonably new to osCommerce and am running the latest loaded version 5 patched. One thing that has me stumped ...

      
  1. #1
    Lurker
    Join Date
    Feb 2003
    Posts
    3
    Rep Power
    0


    Default column widths in oscommerce loaded v5

    I'm reasonably new to osCommerce and am running the latest loaded version 5 patched. One thing that has me stumped is column widths and I was wondering if some kind (bright) soul out there might be able to help. I would like the left column to be 175 pixels wide and the right 150, but cannot consistently achieve this. I would normally have edited the line "define('BOX_WIDTH', 125)" in the application_top.php file but this isn't present. So I have added this line and it makes both columns the same width which is no good. I have also tried editing the table widths in default.php and defining the box_width in column_right.php and column_left.php both to no avail. Any light that can be shed on this matter would be gratefully appreciated, my test site is on-line at www.cosyfeetshop.com/catalog/ as you can see having defined the box_width in application_top.php both columns are 150 pixels wide however I notice on the product_info pages and also product_reviews_info pages the right column seems to have a mind of its own I cant see where its getting its width from even once defined by me it makes no difference?? What is the best way to define a width for the left column and a separate width for the right column that is consistent throughout each page in a site?Any ideas?

  2. #2
    Lurker
    Join Date
    Feb 2003
    Posts
    3
    Rep Power
    0


    Default

    You could just put a 1px high by however many px wide gif in catalog/includes/column_left.php & column_right.php

    Probably not the RIGHT way to do it - but it works!

  3. #3
    New Member
    Join Date
    Jan 2003
    Posts
    8
    Rep Power
    0


    Default

    I had the same problem cforscutt. Let me tell you what I did.
    I created two:
    define ('BOX_WIDTH_LEFT', 175)
    define ('BOX_WIDTH_RIGHT', 150)
    save this in application_top.php
    go to all *.php you want to change (usualy in catalog folder)
    in the left table just put
    <table width="<?php echo BOX_WIDTH_LEFT; ?>" >
    in the right table change to this
    <table width="<?php echo BOX_WIDTH_RIGHT; ?>" >

    p.s. dont know if its good idea to have the same buttons that www.play.com uses in the same exact place.

  4. #4
    Member
    Join Date
    Dec 2002
    Posts
    92
    Rep Power
    0


    Default

    This and other related things drove me nuts originally as far as I am concerned the base site layout should be externally managed not on every page! Then again often good and flexible design can have its downsides too like performance and individual flexibility, howeve in osC's case this would be a good thing.

Similar Threads

  1. How To: have different right and left column widths
    By Kristine in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 08-03-2005, 10:53 PM
  2. Manufacturer image widths
    By gheffron in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 03-19-2004, 01:22 PM
  3. Why are some pics not loaded?
    By Morgoth in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 04-29-2003, 01:28 PM
  4. Posten, Servicpakke vs. MS1 [Loaded v5.0]
    By Petter in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 02-22-2003, 05:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •