If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / Popup main image displayed medium instead of large

Popup main image displayed medium instead of large

Started by vasilt on 12 Jun 2024, 12:59 PM · Views: 611

Results 1 to 1 of 1
12 Jun 2024, 12:59 PM
#1
vasilt avatar

vasilt

New Zenner

Join Date:
Jan 2006
Posts:
44
Plugin Contributions:
0

Popup main image displayed medium instead of large

ZC 2.0
PHP 8.3
I noticed that when clicking on the main image on a Product info page, the popup window displays the medium version instead of the large version of the image. I fixed the issue by changing line 17 of includes/templates/template_default/templates/tpl_modules_main_product_image.php from:

<?php echo zen_image($products_image_medium, $products_name, '', '', 'class="centered-image"'); ?>

to:

<?php echo zen_image($products_image_large, $products_name, '', '', 'class="centered-image"'); ?>