Where can I change HEADING_IMAGE_WIDTH in oscommerce

Posted on 2006-03-22
Last Modified: 2011-09-20

I want to change the value for HEADING_IMAGE_WIDTH in oscommerce to accomodate my new images...

Question by:antum
    LVL 6

    Expert Comment

    You can try looking in the includes directory for a file called header.php.
    I think you want line 57. It should look like this:

        <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

    Change the call to tep_image to:
    tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce', '<my width>', '<my height>')

    LVL 6

    Accepted Solution

    Sorry about that. I think I misunderstood your question.
    HEADING_IMAGE_WIDTH appears to be a constant.
    So, try adding this line to the configure.php file in includes:

    define('HEADING_IMAGE_WIDTH ', '300px');


    Author Comment


    I managed to find it under the admin section of the site! woops, sorry

    Author Comment

    but your suggestion also works, well done,

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Easy Project Management (No User Manual Required)

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now