Is there a way so that I can have just the image of the product larger just on the product description page? (product_list i think)
This is a discussion on differnt sizes images within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; Is there a way so that I can have just the image of the product larger just on the product ...
Is there a way so that I can have just the image of the product larger just on the product description page? (product_list i think)
Hi there, look for this code around line 90:
Notice the SMALL_IMAGE_WIDTH, this relates to what you set in the admin config. You can change 'SMALL_IMAGE_WIDTH' to a fixed value eg '300' but I found if I had different aspect ratio images some went out of proportion. So I added the ( ) and the *2 to the small image width. This will show the main image as what you set as small image width times two.Code:document.write('<a href="javascript:popupImage(\'<?php echo tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . '&type=' . $lg_image_ext); ?>\',\'<?php echo ((int)$image_size[1] + 30); ?>\',\'<?php echo ((int)$image_size[0] + 5); ?>\');"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), (SMALL_IMAGE_WIDTH*2), SMALL_IMAGE_HEIGHT); ?><br /><span class="smallText"><?php echo TEXT_CLICK_TO_ENLARGE; ?></span></a>');
Hope that helps, J.
Edit: You were right about the file, it's in /templates/yourtemplate/content/product_info.tpl.php
Last edited by typhus; 06-12-2008 at 08:30 AM. Reason: Forgot file name.
Will give it a shot now, thanks for the help, will report back
Tried this, but couldn't get it to work.
SMALL_IMAGE_WIDTH*2), SMALL_IMAGE_HEIGHT)
Was the only bit changed yes?
when I changed it to that, the page failed so i removed the ) after the 2, and it worked again, but no images changed size
Bookmarks