How to view larger image fancybox in category virtuemart 2.9.9?
I know you need to modify the file, but how?
\components\com_virtuemart\views\category\tmpl\default.php
In older versions of code changes
<a title="<?php echo $product->product_name ?>" href="<?php echo $product->link; ?>">
<?php
echo $product->images[0]->displayMediaThumb('class="browseProductImage"', false);
?>
</a>
to
<?php echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"'); ?>
In version 2.9.9 code absolutely etc.
2.9.9 was the test series for VM3. You should update to VM3.0.2 now.
The file to create an override for is com_virtuemart/sublayouts/products.php (in div vm-product-media-container)
Thank U. I'll try
Change the code in the file products.php, but this code does not open the image in the FancyBox. VM 3.0.6
I beg you to tell me what should be the code! :(
assume change the fancybox params in components\com_virtuemart\views\productdetails\tmpl\default_images.php
Yes, I understand that for the display of images on the product page meets this file.
But how to apply it to the category page, in the file products.php?
std. template doesn't have a cat view lightbox -- must be your template