SHANX6336 Posted November 30, 2004 Share Posted November 30, 2004 Hey everybody, I'm hoping someone has done this before. In the store configuration, I have a certain image size set for my smallest product images (i.e. 150x75). I also use the Specials infobox in the right column of the web site. My problem is that I don't want the image inside the Specials infobox to be 150x75 because it makes the entire right column much wider than I'd want. How can I customize the width and height of just the Specials infobox? I went ahead and opened my /catalog/includes/boxes/specials.php file to search for an easy way but I know if I start plugging in width and height numbers I will be getting errors: ? ?$info_box_contents = array(); ? ?$info_box_contents[] = array('align' => 'center', ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product["products_id"]) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br><s>' . Any assistance or suggestions will be greatly appreciated. Thanks! Link to comment Share on other sites More sharing options...
gscreations Posted November 30, 2004 Share Posted November 30, 2004 If you what the images to be all the same size just change in the code you mentioned this: SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT to '100','50' or whatever size you want. or to keep images in proportion what i do is SMALL_IMAGE_WIDTH/2, SMALL_IMAGE_HEIGHT/2 - to get images half the size of your thumbnails or SMALL_IMAGE_WIDTH/1.75, SMALL_IMAGE_HEIGHT/1.75 etc experiment with values to get the right size you want. Link to comment Share on other sites More sharing options...
SHANX6336 Posted December 3, 2004 Author Share Posted December 3, 2004 I am shocked at how easy that was! I appreciate the reply. I thought editing that to match the actual pixel size would cause the code to be broken but it worked out perfectly. Oh how I love osCommerce! :D Thanks again for your help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.