Hi VM Community
How can I show the manufacturer logo on the product detail page?
Thanks in advanced
J 2.5.20
VM 2.60
Can this be done?
standard on VM3 -- check the product details templates
Hello,
Please try with following code to get manufacturer thumbnail image.
<?php
if(!empty($product->virtuemart_manufacturer_id))
{
$manumodel = VmModel::getModel('manufacturer');
foreach($product->virtuemart_manufacturer_id as $manufacturer_id)
{
$manumodel->setId($manufacturer_id);
$manufacturer = $manumodel->getManufacturer();
$manumodel->addImages($manufacturer);
$thumbImage = $manufacturer->images[0]->displayMediaThumb('class="mfg-thumbnail-image"', false);
echo $thumbImage;
}
} ?>
Thanks