
Originally Posted by
lat9
FWIW, it's that this template's version of tpl_modules_main_product_image.php is (for whatever reason) bypassing the use of the Zen Cart zen_image function to render those images. That function, if used, is what enables Image Handler to perform its image manipulations.
I am looking at that file now. This file simply echos the html reference to the files...how would I change this to make it work with IH? I have no problems editing this file as needed.
Code:
<?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?>
<figure id="productMainImage" class="product-main-image" itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
<?php
$largewidth = "1000";
$largeheight = "1000";
list($largewidth, $largeheight, $type, $attr) = getimagesize($products_image_large);
$smallwidth = "200";
$smallheight = "200";
list($smallwidth, $smallheight, $type, $attr) = getimagesize($products_image_medium);
echo '<a href="'.$products_image_large.'" itemprop="contentUrl" data-size="'.$largewidth.'x'.$largeheight.'" data-index="0">'. "\n";
echo '<img src="'.$products_image_medium.'" alt="'.$products_name.'" title="'.$products_name.'" width="'.$smallwidth.'" height="'.$smallheight.'" itemprop="thumbnail" class="img-responsive" /></a>'. "\n";
?>
</figure>
Bookmarks