jlweb Posted June 23, 2014 Share Posted June 23, 2014 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 More sharing options...
jomcdonald Posted July 18, 2014 Share Posted July 18, 2014 Merci beaucoup pour ton post qui m'a mis sur la piste. Pour info pour afficher le lien de l'image c'est ce code: src="'. __PS_BASE_URI__ . 'img/m/' . (int) $manufacturer['id_manufacturer'] . '-small_default.jpg" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now