Hi,
Showing manufacturer logos right away is not supported by Virtuemart.
We did it with "VM2 Template - PureMArt" but still there are some core modifications required to achieve this.
Follow this tutorial first:
www.flexiblewebdesign.com/forum-virtuemart-2-template-puremart-support/250-tutorial-how-to-show-manufacturer-logos
For Category Browse Page, Open this PHP file:
/templates/<yourjoomlatemplate>/html/com_virtuemart/category/default.php
(default.php or flexv2.php or which ever you are using for category browse page layout)
Copy these lines below to where you want to put the manufacturer logo (don't forget, category browse page includes different Views (GridView and ListView), you should put the these lines below to 2 different places for this purpose so they will be visible in GridView and ListView.):
<?php
if (empty($product->mf_images[0]->file_url_thumb)) {
echo ""; // leave here empty so nothing will be visible
} else { ?><?php
$ManufacturerLink = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $product->virtuemart_manufacturer_id . '&tmpl=component');
$ManufacturerName = $product->mf_name;
?>
<div class="FlexibleProductDetailsManufacturerLogo">
<a title="<?php echo $ManufacturerName; ?>" rev="iframe|550|650" rel="facebox" href="<?php echo $ManufacturerLink ?>"><img src="<?php echo $product->mf_images[0]->file_url_thumb; ?>" alt="<?php echo $ManufacturerName; ?>" /></a>
</div>
<?php } ?>
For product details page, Open this PHP file:
/
templates/<yourjoomlatemplate>/html/com_virtuemart/productdetails/default.php
(default.php or flexv2.php which ever you are using for product details page layout)
Copy these lines below to where you want to put the manufacturer logo :
<?php
if (empty($this->product->mf_images[0]->file_url_thumb)) {
echo ""; // leave here empty so nothing will be visible
} else { ?><?php
$ManufacturerLink = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $this->product->virtuemart_manufacturer_id . '&tmpl=component');
$ManufacturerName = $this->product->mf_name;
?>
<div class="FlexibleProductDetailsManufacturerLogo">
<a title="<?php echo $ManufacturerName; ?>" rev="iframe|550|650" rel="facebox" href="<?php echo $ManufacturerLink ?>"><img src="<?php echo $this->product->mf_images[0]->file_url_thumb; ?>" alt="<?php echo $ManufacturerName; ?>" /></a>
</div>
<?php } ?>
And to limit the size of those manufacturer logos, you can insert this CSS rule (to any CSS file you are sure it gets loaded in the website)
div.FlexibleProductDetailsManufacturerLogo img {
max-height:50px;
max-width:50px;
margin:5px 0;
}
then you should be all good to go.