To add manufacturer logo to product_list.tpl file copy this code
before the image tag :
</pre> <!--module manufacturerLogo---> {*hook h="DisplayILabsManufacturerLogo" product=$products type=product*} {assign var=logos value=(int)Configuration::get('manufacturerlogo_name')} {if isset($logos) && $logos==1} {Manufacturer::getNameById($product.id_manufacturer)} {/if} <a href="{$base_dir}index.php?id_manufacturer={$product.id_manufacturer}&controller=manufacturer&id_lang={Tools::getValue('id_lang')}"> <img src="{$base_dir}img/m/{$product.id_manufacturer}-small_default.jpg" alt="{Manufacturer::getNameById($product.id_manufacturer)}" title="{Manufacturer::getNameById($product.id_manufacturer)}" > <!--end module--->
This code should be before the img tag. For the default-bootstrap theme, you can put it in the line 56 inside the the
div class left-block .
</pre> <div class="ajax_block_product{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-3{else} col-xs-12 col-sm-6 col-md-4{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if}{if $smarty.foreach.products.iteration &amp;gt; ($smarty.foreach.products.total - $totModulo)} last-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if}{if $smarty.foreach.products.iteration &amp;gt; ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}"> <div class="product-container" itemtype="http://schema.org/Product"> <div class="left-block"> <!--module manufacturerLogo---> {*hook h="DisplayILabsManufacturerLogo" product=$products type=product*} {assign var=logos value=(int)Configuration::get('manufacturerlogo_name')} {if isset($logos) & $logos==1} {Manufacturer::getNameById($product.id_manufacturer)} <a href="{$base_dir}index.php?id_manufacturer={$product.id_manufacturer}&controller=manufacturer&id_lang={Tools::getValue('id_lang')}"> <img src="{$base_dir}img/m/{$product.id_manufacturer}-small_default.jpg" alt="{Manufacturer::getNameById($product.id_manufacturer)}" title="{Manufacturer::getNameById($product.id_manufacturer)}" /> <!--end module---> <div class="product-image-container"> <pre>
NB: You can download the module manufacturerlogo from the forum from this link: Manucturer Logo.
If you any question don’t hesitate to add your comment.
Facebook Comments Box