We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Where can I change HEADING_IMAGE_WIDTH in oscommerce

antum
antum asked
on
Medium Priority
578 Views
Last Modified: 2011-09-20
Hi,

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

Thanks
Ant
Comment
Watch Question

Brian BushSolutions Architect

Commented:
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>')

--brian
Solutions Architect
Commented:
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');

--brian

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Hi,

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

Author

Commented:
but your suggestion also works, well done,
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.