Author Topic: Image lightbox  (Read 3123 times)

chrisnz

  • Beginner
  • *
  • Posts: 19
Image lightbox
« on: October 24, 2011, 21:03:53 pm »
I'm trying to workout how to display the image as a thumbnail on the product page with a link to the full size image in a lightbox, much the same as the v1.1 flypage

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10358
  • VirtueMart Version: 3+
Re: Image lightbox
« Reply #1 on: October 24, 2011, 21:22:59 pm »
<?php echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"'); ?>


http://forum.virtuemart.net/index.php?topic=90935.0
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

chrisnz

  • Beginner
  • *
  • Posts: 19
Re: Image lightbox
« Reply #2 on: October 25, 2011, 03:59:40 am »
<?php echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"'); ?>

Thanks - just a slight change to get it to work
<?php echo $this->product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"'); ?>