In FashionMart, there are 2 different layouts in Category Browse page.
1- GRID Layout (THUMB layout)
2- LIST layout.
In the list layout, there is already "add to cart" button (this is why you are seeing same exact codes in 363-459th line), but since you have asked, i though you want to add it to GRID layout as well. The PHP codes above should be copy/pasted in
templates/<yourjoomlatemplate>/html/com_virtuemart/category/default.php
to 623th line. Right after these lines:
<div class="FlexibleThumbBrowseV1ProductDetailsButton">
<?php // Product Details Button
echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' => 'product-details'));
?>
</div>
Flexible Support Team