chti56 Posted April 13, 2017 Share Posted April 13, 2017 (edited) Bonjour, Je suis en cours d'installation d'un site avec PS 1.6.12 et je voudrais savoir si une solution existe pour afficher la marque de produit quand on affiche un produit ? L'idéal serait aussi de pouvoir cliquer sur cette marque et ainsi d'afficher tous les produits de la marque.. J'ai trouvé un code à insérer dans le source de la fiche produit.. mais il date de 2012 !! Merci pour votre aide. JP Edited April 14, 2017 by chti56 (see edit history) Link to comment Share on other sites More sharing options...
PixGeek Posted April 14, 2017 Share Posted April 14, 2017 Ouvrez le fichier->product.tpl de votre theme et ajoutez ceci, là ou vous souhaitez l'afficher : <!-- AFFICHE LOGO/NON FABRICANT/PROVENANCE --> <p {if !$product->manufacturer_name}style="display:none;"{/if}> <a href="{$link->getManufacturerLink($product->id_manufacturer)}"> <label>{l s='PROVENANCE :'}</label> <a href="{$link->getManufacturerLink($product->id_manufacturer)}" style="font-weight:700;"> <img src="{$img_manu_dir}{$product->id_manufacturer|escape:'htmlall':'UTF-8'}.jpg" alt="{$product->manufacturer_name|escape:'htmlall':'UTF-8'}" width="25" style="margin-top:-3px;"/> <span>{$product->manufacturer_name|escape:'htmlall':'UTF-8'}</span> </a> </p> <!-- FIN AFFICHAGE LOGO/NON FABRICANT/PROVENANCE --> Videz les caches.. 1 Link to comment Share on other sites More sharing options...
chti56 Posted April 14, 2017 Author Share Posted April 14, 2017 Bonjour, Merci pour cette réponse. Je vais l'essayer tout de suite... Cdt Link to comment Share on other sites More sharing options...
chti56 Posted April 14, 2017 Author Share Posted April 14, 2017 Un petit retour... Merci pour cette solution qui fonctionne parfaitement. Bonne fin de semaine. JP Link to comment Share on other sites More sharing options...
PixGeek Posted April 14, 2017 Share Posted April 14, 2017 Un petit retour... Merci pour cette solution qui fonctionne parfaitement. Bonne fin de semaine. JP De rien, n'oubliez pas de mettre votre post sur résolu. Bonne fêtes de pâques Link to comment Share on other sites More sharing options...
chti56 Posted April 14, 2017 Author Share Posted April 14, 2017 J'avais bien sûr oublié... C'est fait !! Bonne Fêtes Pascales. Link to comment Share on other sites More sharing options...
Lyn&Or Bijoux Posted September 28, 2019 Share Posted September 28, 2019 Bonjour, Merci pour cette solution simple et sans bla bla... fonctionne sous PS 1.6.1.12 https://lyn-et-or-bijoux.com/1105-chaine-grains-de-cafe-argent-homme-femme.html Bonne journée Link to comment Share on other sites More sharing options...
chti56 Posted September 28, 2019 Author Share Posted September 28, 2019 Bonsoir, C'est toujours une satisfaction de pouvoir aider ... et en plus quand le problème est résolu !! Bonne soirée 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