Author Topic: Category page removal of modal/lightbox on product images 3.0  (Read 1696 times)

Thump76

  • Beginner
  • *
  • Posts: 3
Category page removal of modal/lightbox on product images 3.0
« on: February 04, 2016, 23:12:07 pm »
Hi there
Really hope you can help. I am getting a lot of feedback about my category page and the link on the product images at the moment it opens a modal/lightbox. Users are expecting the image to go to the product detail page. Is there a way of switching off the modal/lightbox and instead taking them to the product detail page?

I came across this: http://forum.virtuemart.net/index.php?topic=103785.0 (and many others) but I think this is for vm2
I have looked in my /templates/YOUR TEMPLATE/html/com_virtuemart/category/default.php file but still not any clearer.

Sorry but I have checked on Google and the forums but there is only info on how to make this change with VM2.5. I am using: Joomla 3.48 and VirtueMart 3.0.12

Hope you can help
Thanks
Phil

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28336
  • Always on vacation
    • Jenkin Hill Internet
Re: Category page removal of modal/lightbox on product images 3.0
« Reply #1 on: February 04, 2016, 23:36:40 pm »
Normal VirtueMart 3 action is that clicking on a product image on the category page does take you directly to the full product details page. So it seems that you are using template overrides which do not support that function. In default VM that function can be found in the sublayout at components/com_virtuemart/sublayouts/products.php  The relevant code is

Code: [Select]
<div class="vm-product-media-container">
<a title="<?php echo $product->product_name ?>" href="<?php echo $product->link.$ItemidStr?>">
<?php
echo $product->images[0]->displayMediaThumb('class="browseProductImage"'false);
?>

</a>
</div>


Assuming your template developer has actually updated the overrides to VM3 format, then the override being used will be [yourJoomlaTemplate]/html/com_virtuemart/sublayouts/products.php  - so that is the file you will need to edit.

Or get you template developer to fix it.
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  4.0.2 10661 on Joomla 3.10.9 PHP 7.4.29

Thump76

  • Beginner
  • *
  • Posts: 3
Re: Category page removal of modal/lightbox on product images 3.0
« Reply #2 on: February 04, 2016, 23:44:09 pm »
Wow thank you for your quick reply. I'll check this out.
Phil

Thump76

  • Beginner
  • *
  • Posts: 3
Re: Category page removal of modal/lightbox on product images 3.0
« Reply #3 on: February 07, 2016, 21:05:31 pm »
 :D
Finally got round to fixing this. Works lovely http://bikesand.co
Thanks jenkinhill