
Originally Posted by
Donn
In other words, can I choose to have the MED photo at the top, and additional 'med'-sized photos at the bottom of the HTML text?
Zen Cart handles 3 sizes of images:
Small images / thumbnails ... are used in product/category listings and for the additional-image thumbnails on the product pages.
The Medium Image (only one) is used as the main image of the product on the product page. If none is specified, the thumbnail image is used.
The Large Images are used only when clicking on a smaller image that says Click for Larger Image.
If you wish to change the size of the additional images shown on the product page to use the Medium Images and display in Medium Size, edit your /includes/modules/additional_images.php and save it as /includes/modules/YOUR_TEMPLATE/additional_images.php
around line 88 you have these 2 lines:
Code:
$thumb_slashes = zen_image($base_image, addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
replace them with these instead:
Code:
// check for a medium image else use small
$products_image_medium = $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension;
if (file_exists(DIR_WS_IMAGES . 'medium/' . $products_image_medium)) {
$base_image = DIR_WS_IMAGES . 'medium/' . $products_image_medium;
}
$thumb_slashes = zen_image($base_image, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT);
$thumb_regular = zen_image($base_image, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT);