VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: chrisnz on October 24, 2011, 21:03:53 PM

Title: Image lightbox
Post by: chrisnz 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
Title: Re: Image lightbox
Post by: PRO 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
Title: Re: Image lightbox
Post by: chrisnz on October 25, 2011, 03:59:40 AM
Quote from: BanquetTables.pro 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"'); ?>

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"'); ?>