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

Disable open product detail page in popup

Started by roman5527, September 03, 2021, 15:37:34 PM

Previous topic - Next topic

roman5527

Hi, How i can disable open product img on detail page in popup window ?

vm version : 3.8.8

tahnks

jenkinhill

What do you want to happen instead of the fancybox?
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

roman5527

Hi, i need disabled it on mobile . and I don't want to replace it with anything. I don't want anything to happen.

Jörgen

I do not know if there another way, but you can test this.

Make an override on
templates/mod_virtuemart_product/default.php

You will find this code, approx line 33. Remove the link and opening of the image
echo JHTML::_ ('link', JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id), $image, array('title' => $product->product_name));
echo '<div class="clear"></div>';
$url = JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' .$product->virtuemart_category_id); ?>
<a href="<?php echo $url ?>"><?php echo $product->product_name ?></a>        <?php    echo '<div class="clear"></div>';


Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Studio 42

Jorgen, he want disable it on product details.
File si by default : /components/com_virtuemart/views/productdetails/tmpl/default_images.php
replace
echo $image->displayMediaThumb("",true,"rel='vm-additional-images'", true, true, false, $width, $height);
with
echo $image->displayMediaThumb("",false,"rel='vm-additional-images'", true, true, false, $width, $height);
If you have an override in your template
See templates/YOURTEMPLATE/html/com_virtuemart//productdetails/default_images.php