News:

Looking for documentation? Take a look on our wiki

Main Menu

Image lightbox

Started by chrisnz, October 24, 2011, 21:03:53 PM

Previous topic - Next topic

chrisnz

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

<?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

chrisnz

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