Author Topic: Disable open product detail page in popup  (Read 478 times)

roman5527

  • Jr. Member
  • **
  • Posts: 211
Disable open product detail page in popup
« on: September 03, 2021, 15:37:34 pm »
Hi, How i can disable open product img on detail page in popup window ?

vm version : 3.8.8

tahnks

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28196
  • Always on vacation
    • Jenkin Hill Internet
Re: Disable open product detail page in popup
« Reply #1 on: September 03, 2021, 18:29:47 pm »
What do you want to happen instead of the fancybox?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.28 PHP 7.4.14

roman5527

  • Jr. Member
  • **
  • Posts: 211
Re: Disable open product detail page in popup
« Reply #2 on: September 03, 2021, 21:37:32 pm »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3668
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Disable open product detail page in popup
« Reply #3 on: September 04, 2021, 11:28:57 am »
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
Code: [Select]
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

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4486
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Disable open product detail page in popup
« Reply #4 on: September 08, 2021, 11:40:42 am »
Jorgen, he want disable it on product details.
File si by default : /components/com_virtuemart/views/productdetails/tmpl/default_images.php
replace
Code: [Select]
echo $image->displayMediaThumb("",true,"rel='vm-additional-images'", true, true, false, $width, $height);with
Code: [Select]
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