News:

Support the VirtueMart project and become a member

Main Menu

Category listing links images to details page not lightbox

Started by joshlfisher, January 18, 2012, 21:05:21 PM

Previous topic - Next topic

joshlfisher

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!