New Zenner
- Join Date:
- May 2008
- Posts:
- 65
- Plugin Contributions:
- 0
How can I use medium images on product listing page, and thumbnails in sideboxes?
Hello All,
I hope someone can help with a problem I'm trying to solve. I know how to change the displayed image size in various areas, however since I have images in my images, /medium, and /large directories I'd like to use the medium sized images on my product listing page instead of the thumbnail sized since I'm having cross-browser issues when I rely on the browser to handle resizing the images for me.
I've tried editing the product_listing.php page which currently has:
zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"')
I've tried including the main_product_image.php file then changing the code to:
zen_image(DIR_WS_IMAGES . 'medium/' . $products_image_medium, $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"')
with no luck.
Can someone tell me how to edit this file to use the image in the medium directory instead of the thumbnail stored in the products_image listing?
Thanks!