sebastienlapp Posted May 20, 2014 Share Posted May 20, 2014 Bonjour, Totalement newbie dans le domaine je vous remercie par avance de votre éclairage. Je travaille sur une boutique d'un nouveau client qui est en Version 1.3.2.3 Je cherche à ajouter un simple lien dans le header, et après moulte recherches j'ai fini par trouver qu'il fallait modifier modules\blockuserinfo\blockuserinfo.tpl pour rajouter la deuxième balise <li> ci dessous. <div class="menu2" style="margin-left:35px; position:absolute; font-family:Georgia; font-size:14px; float:left; /z-index:10000"> <ul id="Nav" style=" width:580px;"> <li style="width:125px;"> <div style="width:1px; height:20px; background:#999999; float:left; margin-top:2px;"></div><div style="margin-left:7px; float:left"> <a href="shop.php" style="letter-spacing:0.20pt">{l s='Boutiques' mod='blockuserinfo'}</a> </div> <ul class="Menu" style=" width:125px;" > {foreach from=$shops item=shop name=shops} <li style="width:180px;"><a href="shop.php" style="font-family: Times; font-size: 12px; height: 12px;"><span style="margin-left:9px;">{$shop.title}</span></a></li> {/foreach} </ul> </li> <li style="width:100px;"> <div style="width:1px; height:20px; background:#999999; float:left; margin-top:2px;"></div> <div style="margin-left:7px; float:left"> <a href="http://www.citycake.fr/55_patissier-chocolatier_hugo-victor" title="citycake patisserie" style="letter-spacing:0.20pt"> Livraisons Paris </a> </div> </li> </ul> </div> 1/ première question, est-ce au bon endroit ?? je veux dire est ce bien ce fichier qu'il faut modifier ? 2/ quand je consulte le site online, même avec vidage du cache, rien n'apparait ... :/ Avez vous une idée pourquoi ? Merci ! Link to comment Share on other sites More sharing options...
CharlyGandhi Posted May 20, 2014 Share Posted May 20, 2014 Si je ne me trompe pas je pense qu'il faut ajouter ton liens dans le module blocpermanentlink(.tpl) Link to comment Share on other sites More sharing options...
herve25 Posted May 21, 2014 Share Posted May 21, 2014 Attention également au cache.Sous Prestashop 1.3 il peut être nécessaire de supprimer manuellement les fichiers php du tpl concerné dans le dossier "tools/smarty/compile/" pour voir apparaitre les modifications. Link to comment Share on other sites More sharing options...
sebastienlapp Posted May 21, 2014 Author Share Posted May 21, 2014 j'ai essayé vos deux solutions en vain...rien ne bouge c'est quand même étrange ?! Link to comment Share on other sites More sharing options...
CharlyGandhi Posted May 21, 2014 Share Posted May 21, 2014 Peux tu nous donner un lien de ta boutique STP Link to comment Share on other sites More sharing options...
sebastienlapp Posted May 21, 2014 Author Share Posted May 21, 2014 www.hugovictor.com je veux juste rajouter un lien à droite de "Boutiques" ... Link to comment Share on other sites More sharing options...
CharlyGandhi Posted May 21, 2014 Share Posted May 21, 2014 Ne serait-ce pas dans le bloc menu qu'il faudrait rajouter le lien ? Link to comment Share on other sites More sharing options...
sebastienlapp Posted May 21, 2014 Author Share Posted May 21, 2014 le problème c'est que même en essayant de mettre ceci dans blocktopmenu.tpl, ca ne change rien au site...il doit vraiment y avoir une histoire de recompilation qui m’échappe... Link to comment Share on other sites More sharing options...
CharlyGandhi Posted May 21, 2014 Share Posted May 21, 2014 Je viens de faire un test sur une de mes boutiques : Dans le BO : Modules / blocktopmenu / configurer Là ajouter un lien. Link to comment Share on other sites More sharing options...
sebastienlapp Posted May 21, 2014 Author Share Posted May 21, 2014 C'est un truc de fou ... ou alors une histoire de version (je suis en 1.3.2) mais j'ai pas de module blocktopmenu dans le back office. merci encore en tout cas pour votre aide jusque là... Link to comment Share on other sites More sharing options...
CharlyGandhi Posted May 21, 2014 Share Posted May 21, 2014 (edited) Chez moi il s'appel "Menu Haut horizontal " l'habitude de dire bloctopmenu pardon Edited May 21, 2014 by CharlyGandhi (see edit history) Link to comment Share on other sites More sharing options...
sebastienlapp Posted May 21, 2014 Author Share Posted May 21, 2014 [rire nerveux] héhéhé ...je l'ai pas ce menu ! en fait pour avoir parcouru tout les liens du BO, j'en suis arrivé à la conclusion que c'était à gérer directement dans le code, car qui ressemble à ce que je cherche ne s'y trouve. 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