Hi,
You would need to change lots of links, as there are too many links to point to product details page.
Normally the PHP file you need make edits is this below:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/category/default.php
(default.php, flexv2.php, defaultlist.php etc.. depends on which layout you are using)
But for example this below:
<?php echo JHTML::link($product->link, $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',false,'')); ?>
is to generate the thumbnail in the category browse page and to link to product details page. As you see in the line, it is not ordinary <a href=""> <img src="" > </a> So it is not possible to add target="_blank" in it. The php line you see below automatically generate the ordinary <a href=""> <img src=""> </a> in the layout by using the CORE function. So you will need to find this core function in ROOT/administrator/components/com_virtuemart/ folder, but this wouldn't be recommended as it would be called "Virtuemart CORE hacking"
And same thing is for the "product details button" as well:
<?php // Product Details Button
echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' => 'flexibleButton'));
?>
We wouldn't recommend you to do any kind of CORE editing, (since eventually your changes will be retrieve once you update your Virtuemart) and we refuse to give support to touch any files that locates in ROOT/administrator/components/com_virtuemart folder.
Another option is to transform the PHP lines that generates the links to something ordinary links, such as having:
<a target="_blank" href="<?php echo $product->link ?>" ><?php echo $product->product_name ?></a>
Instead of
<?php // Product Details Button
echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' => 'flexibleButton'));
?>
Basically these 2 code above do the same thing. But the 1st one just doesn't use the CORE Link generation functions of Virtuemart, so you won't need any core hacking. But it would give you lots of pain and require hard works as you will need to change lots of things. As there are too many links in the category browse page.
Please check here:
forum.virtuemart.net/index.php?topic=97744.45 for more info.
Flexible Support Desk.