hello
How to display productImage with function fancybox in the in page category where there is list the products
I see in /public_html/templates/yourtemplate/html/com_virtuemart/categor/default_template.php
when you add code productImage there is this code:
<?php if (isset($productItems->productImage)) : ?>
<?php if ($productItems->productImage->imagesExists) : ?>
<?php
$offsetHeight = isset($productItems->productImage->offsetHeight) ? $productItems->productImage->offsetHeight : 0;
$offsetWidth = isset($productItems->productImage->offsetWidth) ? $productItems->productImage->offsetWidth : 0;
$height = 'height:' . (VmConfig::get ('img_height') + $offsetHeight) . 'px;';
$width ='width:' . (VmConfig::get ('img_width') + $offsetWidth) . 'px;';
if (is_object($productItems->productImage->image))
$imgHtml = $productItems->productImage->image->displayMediaThumb('class=" bd-imagestyles"', false);
else
$imgHtml = str_replace('<img', '<img class=" bd-imagestyles" ', $productItems->productImage->image);
?>
<a class=" bd-productimage-10" href="<?php echo $productItems->productImage->link; ?>">
<?php echo $imgHtml; ?>
</a>
<?php endif; ?>
<?php endif; ?>
How to add a productImage just direct to image in fancybox and not direct to productdetail?
regards
philippe.t
Last edited 14 March 2016 by philippe.t





