On http://jewelryinternet.com/index.php/rings
When i click any image of product, it only pop up but i want that it should be linked to its detail page instead of JPG popup
Please help
Hi, i had the same problem:
Find this file:
components/com_virtuemart/views/category/tmpl/default.php
Replace this code:
echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"');
with this one:
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="featuredProductImage" border="0"',false,'class="modal"' ) );
And in file:
components/com_virtuemart/views/virtuemart/tmpl/default_products.php
Find and replace this code:
if ($product->images) {
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="featuredProductImage" border="0"',true,'class="modal"' ) );
}
with this one:
if ($product->images) {
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="featuredProductImage" border="0"',false,'class="modal"' ) );
}
Its 100%, still, i recomend backup
It is also solved in this thread, if you want it official ;)
https://forum.virtuemart.net/index.php?topic=101076.0
Thank you very much but it does not work
can you please send me updated files
best regards