VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: joshlfisher on January 18, 2012, 21:05:21 PM

Title: Category listing links images to details page not lightbox
Post by: joshlfisher on January 18, 2012, 21:05:21 PM
I need some help changing the default category listing  so that the image thumbnail links to the product details page just like the title and details button. Currently it is linking to a lightbox of the full size image.

Current code:

<?php /** @todo make image popup */ //  REMOVED IMAGE POPUP IMAGE NOW LINKS TO PRODUCT DETAILS PAGE
echo $product->images[0]->displayMediaThumb('class="browseProductImage imgshadow" border="0" title="'.$product->product_name.'" ',true,'class="modal"') ;
?>


Found this code that generates the title of the product, and links it to the details page:

<?php echo JHTML::link($product->link$product->product_name); ?>

I just need to sort of combine the two.

Thanks!
Title: Re: Category listing links images to details page not lightbox
Post by: PRO on January 18, 2012, 21:13:58 PM
http://forum.virtuemart.net/index.php?topic=90935.msg299146#msg299146