Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can the manufacture image in the box resize too?


Jesse J

Recommended Posts

Posted

I have done as suggested by many and that is define only the width of the images in the admin. In my case I have made them all 100px. This is working out well except that in the "manufacture info" box it does not resize the manufacture logo. This is causing the entire right column of my page to stretch because all of the images are not the same size.

 

Any code I could drop in to make this image scale like the rest?

 

Thanks!

Posted

catalog\includes\boxes\manufacturer_info.php

 

find

 ?if (tep_not_null($manufacturer['manufacturers_image'])) $manufacturer_info_string .= '<tr><td align="center" class="infoBoxContents" colspan="2">' . tep_image(DIR_WS_IMAGES . $manufacturer['manufacturers_image'], $manufacturer['manufacturers_name']) . '</td></tr>';
? ?

 

change to

 if (tep_not_null($manufacturer['manufacturers_image'])) $manufacturer_info_string .= '<tr><td align="center" class="infoBoxContents" colspan="2">' . tep_image(DIR_WS_IMAGES . $manufacturer['manufacturers_image'], $manufacturer['manufacturers_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</td></tr>';

Posted

Perfect! Thank you sooooo much :D

 

Just a note.. for me there is a bunch more code before the cell and row close but that is no big deal. the main thing was finding out what (and where) to add the code about the images hight and width. Thanks so much again :D

-Jesse J

Archived

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

×
×
  • Create New...