Ran across this thread in a "similar threads" list, and as there seem to be no similar threads to this with a resolution, thought I'd chime in...
Bonnit was on the right track with the line to modify for featured products images:
PHP Code:
zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT)
To use the large image instead of the base image, you would need to change both the folder path (adding large/) and the image filename (adding _LRG). The first is trivial, but the second requires inserting a string into a particular position inside another string. It would be easiest to do this ahead of time and reference the modified filename in the posted statement.
You also really need to test for the existence of the large image, as the stock product_info page image code does. If there happens to be no large image, the zen_image function as posted would fall back on the "no image" image instead of the small image.
/includes/modules/pages/popup_image/header_php.php holds the code for this:
PHP Code:
$products_image_extension = substr($products_image, strrpos($products_image, '.'));
$products_image_base = preg_replace('|'.$products_image_extension.'$|', '', $products_image);
$products_image_medium = $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension;
$products_image_large = $products_image_base . IMAGE_SUFFIX_LARGE . $products_image_extension;
// check for a medium image else use small
if (!file_exists(DIR_WS_IMAGES . 'medium/' . $products_image_medium)) {
$products_image_medium = DIR_WS_IMAGES . $products_image;
} else {
$products_image_medium = DIR_WS_IMAGES . 'medium/' . $products_image_medium;
}
// check for a large image else use medium else use small
if (!file_exists(DIR_WS_IMAGES . 'large/' . $products_image_large)) {
$products_image_large = $products_image_medium;
} else {
$products_image_large = DIR_WS_IMAGES . 'large/' . $products_image_large;
}
You would need to precede this with
PHP Code:
$products_image = $featured_products->fields['products_image'];
and then use $products_image_large in zen_image():
PHP Code:
zen_image($products_image_large, $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT)