In category view, when you click on an image, it pops up by deafult.
In product details the image can not be clicked.
Personally I think that clicking on an image in Categorie view should just link to the product details page. And in Product details view, the image should popup and enlarge.
This is how you can do it: Of course you should use a template override
find /com_virtuemart/productdetails/default_images.php
change
<?php echo $this->product->images[0]->displayMediaFull('class="medium-image" id="medium-image"', true, "class='modal'", true); ?>
to
<?php echo $this->product->images[0]->displayMediaFull('class="medium-image" id="medium-image"', false, "class='modal'", true); ?>
find
templates/templatename/html/com_virtuemart/category/default.php
then change
echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"');
Change to
echo JHTML::_('link', JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='.$product->virtuemart_category_id),$product->images[0]->displayMediaThumb('class="browseProductImage" border="0"',false));
It's very helpful to me. thanks a lot
also on the FAQ: http://forum.virtuemart.net/index.php?topic=98647.0