xuechao Posted April 16, 2003 Share Posted April 16, 2003 Is it possible to have the "New Product" in the default page to load a different (larger size) image? For example, currently I enabled the images in the listing size (60x60), But I want the same image to appear in the New Product with a size (100x100). Is that possible? Link to comment Share on other sites More sharing options...
Ajeh Posted April 16, 2003 Share Posted April 16, 2003 You could edit it to be SMALL_IMAGE_WIDTH*1.25,SMALL_IMAGE_HEIGHT*1.25 or something like that. Or, just replace the values specifically with 100,100 Link to comment Share on other sites More sharing options...
xuechao Posted April 16, 2003 Author Share Posted April 16, 2003 maybe i didn't make my question clear. Currently I can set the max and min image size in OSCommerce and that will apply to all product images. But is it possible to have the same image with two different sizes? Like: An image appears in the product listing page with size (60x60) and the same image with size (100x100) when it's used in New Product (in default.php) section. Link to comment Share on other sites More sharing options...
xuechao Posted April 17, 2003 Author Share Posted April 17, 2003 I just found the module called image (small, mid, large). Does anyone knows what's that for? Thanks Link to comment Share on other sites More sharing options...
Ajeh Posted April 17, 2003 Share Posted April 17, 2003 If you have the code load based on SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT which are both set to 60 in the Admin ... Then you edit one of the pages to use SMALL_IMAGE_WIDTH*1.25 you get 60 + 25% bigger ... which is 75 in this example. You just change the *1.25 to whatever size you want 60 to grow to on any page where you want to use the exact same image but show it a little bigger than the settings in the Admin. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.