trembita Posted June 4, 2007 Share Posted June 4, 2007 I want to make thumbnails larger but only in detailed review of the product. There is an option in admin panel, but it makes bigger all small images includes ones at main page. So, how to make thumbnail larger but only in detailed review of the product? Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2007 Share Posted June 4, 2007 in your catalog\product_info.php you should have code like: tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') Change the SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT parameters to numbers like (350,350) for testing, then you could add another set of configuration switches to control their values from the admin end. Link to comment Share on other sites More sharing options...
trembita Posted June 4, 2007 Author Share Posted June 4, 2007 OK I found code: tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') in product_info.php , but what parameters shoud I change to get for example 40x40px image? Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2007 Share Posted June 4, 2007 SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT replace with 40, 40 Link to comment Share on other sites More sharing options...
spax Posted June 4, 2007 Share Posted June 4, 2007 Or you can add an operator: SMALL_IMAGE_WIDTH+20, SMALL_IMAGE_HEIGHT+20 Use + - * or / Link to comment Share on other sites More sharing options...
trembita Posted June 4, 2007 Author Share Posted June 4, 2007 marrrecki, spax, enigma1 thanks guys. Everything works fine! Thanks again, you are the best. Link to comment Share on other sites More sharing options...
piticu Posted July 23, 2007 Share Posted July 23, 2007 the new sized thumbnails aren't re-generated? mine look pixelated. should i re-load the pictures? for example: http://www.popescoo.net/catalog/product_in...?products_id=30 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.