Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HEADING_IMAGE_WIDTH


SpiderWire

Recommended Posts

Hi

 

I'm new to PhP and I have search the internet and this forum now for two days and still have no answer. I’m trying to change the size of an image.

It’s located here ../catalog/index.php and here is the coding for the image.

 

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.png', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT)

 

At this stage a have manage to change the picture to ‘my picture’ but it stays at 57 x 40.

I do realize that there might be a post out there about the same thing but I just can’t find it.

Could someone please direct me in the right direction. Is there a common place where you change these values?

 

Thanks in advance.

Link to comment
Share on other sites

If you want all your category images to be the same size as the HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT values then you will set it in admin.

 

If you want all the category images to be 57x40 and have a different size for the other images under HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT then you will need to ammend the following.

 

get.

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.png', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT)

 

and change to

 

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.png', HEADING_TITLE, 57, 40)

 

This will now make all your category images and those only 57x40 this will only help if all your category images are this size and you dont want them to be the same as your images that are controlled by the HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT values controlled in admin.

 

Hope it helps?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...