Jump to content

images dans blocktopmenu


Recommended Posts

Bonjour,

 

Je cherche à ajouter les logos des fabricants dans le module Blocktopmenu.

 

J'ai donc modifié le fichier module/blocktopmenu/blocktopmenu.php au niveau de la fonction "makeMenu"

 

A la ligne 383 j'ai ajouté le code suivant :

foreach ($manufacturers as $key => $manufacturer)
       $this->_menu .= '<li><a href="'.$link->getManufacturerLink((int)$manufacturer['id_manufacturer'], $manufacturer['link_rewrite']).'" title="'.Tools::safeOutput($manufacturer['name']).'"><img src="" alt="" width="80px" height="80px" /><br />'.Tools::safeOutput($manufacturer['name']).'</a></li>'.PHP_EOL;

Cependant je n'arrive pas à savoir comment afficher le lien de l'image de chaque fabricant. Si quelqu'un pouvait m'aider sur le bout de code à utiliser ce serait super.

 

Merci beaucoup

Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...