HARVIE 3 Posted January 12, 2010 Posted January 12, 2010 Bonjour,Voilà j'arrive à afficher le nom du fabricant (avec un lien vers sa page) dans la fiche produit en insérant ce code dans product.tpl : <!-- Affichage du fabricant--> {if $product->manufacturer_name}{l s='Fournisseur : '} getmanufacturerLink($product->id_manufacturer, $manufacturer.link_rewrite)}">{$product->manufacturer_name|escape:'htmlall':'UTF-8'}{/if} De la même façon, j'aimerai également afficher le fabricant dans les listes produits (product-list.tpl). Je pense qu'il faut insérer un code ressemblant à celui-ci mais je ne vois pas trop comment faire.Quelqu'un peut-il m'aider?Merci d'avance,Harvie Share this post Link to post Share on other sites
jeckyl 499 Posted January 12, 2010 Posted January 12, 2010 Salut,en cherchant bien sur le forum tu devrais arriver à trouver. Share this post Link to post Share on other sites
jojodance 0 Posted March 2, 2010 Posted March 2, 2010 Salut Harvie,As-tu trouvé une solution pour le product-list.tpl car je suis intéressé aussi par cet astuce ?Cordialement,JM Share this post Link to post Share on other sites
Emmanuel Paris 4 Posted June 9, 2010 Posted June 9, 2010 Pour afficher le nom du fabricant dans product list : {$product.manufacturer_name|truncate:35|escape:'htmlall':'UTF-8'} Share this post Link to post Share on other sites
laurent0384 0 Posted July 19, 2010 Posted July 19, 2010 Bonjour,J'ai essayé d'ajouter le code de HARVIE, mais il ne fonctionne pas chez moi, il me met une erreur dans le lien. Est-il exact ? Share this post Link to post Share on other sites
rom56 0 Posted July 21, 2010 Posted July 21, 2010 Bonjour;Pour ce que ca interesse, j'ai ajouté la description longue ainsi que le logo du fabricant dans le manufacturer.tpl (quand on affiche les produits d'un meme fabricant).dans manufacturer.tpl, trouver : {l s='List of products by manufacturer:'} {$manufacturer->name|escape:'htmlall':'UTF-8'} ajouter après : {if $manufacturer->id} id}.jpg" width=400 class="logo_manufacturer" title="{$manufacturer->name}" alt="{$manufacturer->name}" /> {/if} {$manufacturer->description|strip_tags:'UTF-8'|truncate:1000} width=400 étant la taille de l'image que vous pouvez bien sur modifier.. Share this post Link to post Share on other sites
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