VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: batman.dp on December 26, 2014, 15:09:29 PM

Title: How to view larger image fancybox in category virtuemart 2.9.9?
Post by: batman.dp on December 26, 2014, 15:09:29 PM
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.
Title: Re: How to view larger image fancybox in category virtuemart 2.9.9?
Post by: jenkinhill on December 27, 2014, 11:25:28 AM
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)
Title: Re: How to view larger image fancybox in category virtuemart 2.9.9?
Post by: batman.dp on December 27, 2014, 15:35:55 PM
Thank U. I'll try
Title: Re: How to view larger image fancybox in category virtuemart 2.9.9?
Post by: AnSit on February 27, 2015, 23:55:22 PM
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! :(
Title: Re: How to view larger image fancybox in category virtuemart 2.9.9?
Post by: GJC Web Design on February 28, 2015, 22:52:41 PM
assume change the fancybox params in components\com_virtuemart\views\productdetails\tmpl\default_images.php
Title: Re: How to view larger image fancybox in category virtuemart 2.9.9?
Post by: AnSit on February 28, 2015, 23:00:34 PM
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?
Title: Re: How to view larger image fancybox in category virtuemart 2.9.9?
Post by: GJC Web Design on February 28, 2015, 23:06:27 PM
std. template doesn't have a cat view lightbox -- must be your template