Again, thank you for the quick response.

Originally Posted by
boudewijn
Another option is to change the ZC code. In includes/modules/main_product_image.php, the variables containing the different size image names are built. You could add an 'if', checking if the large image file exists, and if not, use the small image file instead. Can be done in one line of code.
I knew that was an option! I just didn't know how or where to do it. I would think most ppl would want this IF statement if not only for convenience but as a generic fail-safe? Speaking of which, I did a little digging and...
Code:
// 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)) {
if (!file_exists(DIR_WS_IMAGES . 'medium/' . $products_image_medium)) {
$products_image_large = DIR_WS_IMAGES . $products_image;
} else {
$products_image_large = DIR_WS_IMAGES . 'medium/' . $products_image_medium;
}
} else {
$products_image_large = DIR_WS_IMAGES . 'large/' . $products_image_large;
}
Is this not what you're referring to?
Bookmarks