New Zenner
- Join Date:
- Oct 2007
- Posts:
- 1
- Plugin Contributions:
- 0
Large image not correct shown when there is only a small and medium image
When there is not an image for a product in the 'large' folder, but there is an image in the 'medium' folder, the small image is shown in the popup instead of the 'medium' image.
In includes\modules\pages\popup_image\header_php.php (version 2984 2006-02-07 22:00:25Z drbyte) line 53 and 56 should use "$products_image_medium" and not "DIR_WS_IMAGES . 'medium/' . $products_image_medium".
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;
}
if (!file_exists(DIR_WS_IMAGES . 'large/' . $products_image_large)) {
if (!file_exists($products_image_medium)) {
$products_image_large = DIR_WS_IMAGES . $products_image;
} else {
$products_image_large = $products_image_medium;
}
} else {
$products_image_large = DIR_WS_IMAGES . 'large/' . $products_image_large;
}
time is my only fear
an enemy of sand