News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How to view larger image fancybox in category virtuemart 2.9.9?

Started by batman.dp, December 26, 2014, 15:09:29 PM

Previous topic - Next topic

batman.dp

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.

jenkinhill

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)
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum


AnSit

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! :(

GJC Web Design

assume change the fancybox params in components\com_virtuemart\views\productdetails\tmpl\default_images.php
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

AnSit

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?

GJC Web Design

std. template doesn't have a cat view lightbox -- must be your template
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation