Hi,
I would like to show the logo of the manufacturer in the product module... I already done for the product details page inserting in templates/my-template/html/com_virtuemart/productdetails/default.php the following code:
<?php
// Manufacturer of the Product
if (VmConfig::get('show_manufacturers', 1) && !empty($this->product->virtuemart_manufacturer_id)) {
echo $this->loadTemplate('manufacturer');
}
?>
and in components/com_virtuemart/views/productdetails/tmpl/default_manufacturer.php the following code:
<div class="manufacturer">
<?php
$i = 1;
$mans = array();
// Gebe die Hersteller aus
foreach($this->product->manufacturers as $manufacturers_details) {
//Link to products
$link = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $manufacturers_details->virtuemart_manufacturer_id. '&tmpl=component', FALSE);
$name = $manufacturers_details->mf_name;
$image = $manufacturers_details->images[0];
// Avoid JavaScript on PDF Output
if (!$this->writeJs) {
$mans[] = JHtml::_('link', $link, $name);
} else {
$mans[] = '<a class="manuModal" rel="{handler: \'iframe\', size: {x: 700, y: 850}}" href="'.$link .'">'.$image->displayMediaThumb("",false).'</a>';
}
}
echo implode(', ',$mans);
?>
</div>
I tried to do the same for the product module but without success, there is someone that can help me?
Thank you, bye.
Giuseppe
VM 3.0.12
J 3.4.8