Jump to content

[SOLVED] Brand logos in menu


Recommended Posts

Hi all,

 

I'm developing my first prestashop website and I've stumbled upon the following question:

 

Is it possible to display logos of manufacturers in the manufacturers menu(left menu)? Currently it's just ul.

 

And also is it possible to limit number of manufacturers to be displayed (e.g. 10 only, others would be shown in dropdownl

 

Thanks!

Link to comment
Share on other sites

Open your blockmanufacturer.tpl file (in the theme's modules folder if it's there, otherwise in modules/blockmanufacturer)

 

and change this line

 

 <li class="{if $smarty.foreach.manufacturer_list.last}last_item{elseif $smarty.foreach.manufacturer_list.first}first_item{else}item{/if}"><a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}" title="{l s='More about' mod='blockmanufacturer'} {$manufacturer.name}">{$manufacturer.name|escape:'htmlall':'UTF-8'}</a></li>

 

into

 

<li class="{if $smarty.foreach.manufacturer_list.last}last_item{elseif $smarty.foreach.manufacturer_list.first}first_item{else}item{/if}"><a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}" title="{l s='More about' mod='blockmanufacturer'} {$manufacturer.name}"><img src="{$base_dir}img/m/{$manufacturer.id_manufacturer}.jpg"/></a></li>

 

You can vary the size of course, based on your image types, by adding like -small_default before the extension

Link to comment
Share on other sites

×
×
  • Create New...