celinem01 Posted March 18, 2015 Share Posted March 18, 2015 (edited) J'essaie d'ajouter le nom du fournisseur sur product-list.tpl, j'ai pu l'ajouter sans problème sur product.tpl : {if $product->supplier_name}<span class="lien_marque";> <a href="{$link->getsupplierLink($product->id_supplier, $supplier.link_rewrite)}" style="font-size:20px;">{$product->supplier_name|escape:'htmlall':'UTF-8'}</a></span> {/if} Mais impossible sur product-list.tpl. Pourriez-vous m'aider ? Merci Edited March 23, 2015 by celinem01 (see edit history) Link to comment Share on other sites More sharing options...
defuzed Posted March 18, 2015 Share Posted March 18, 2015 (edited) bonjour, juste pour être sur, tu as essaye avec $product.supplier_name etc. (un "." au lieu de "->")? Edited March 18, 2015 by defuzed (see edit history) Link to comment Share on other sites More sharing options...
J. Danse Posted March 18, 2015 Share Posted March 18, 2015 Bonjour, Dans l'idée de votre code: {if $product.id_supplier} <span class="lien_marque";> <a href="{$link->getsupplierLink($product.id_supplier, Tools::link_rewrite(Supplier::getNameById($product.id_supplier)))}" style="font-size:20px;">{Supplier::getNameById($product.id_supplier)|escape:'htmlall':'UTF-8'}</a> </span> {/if} 1 Link to comment Share on other sites More sharing options...
celinem01 Posted March 23, 2015 Author Share Posted March 23, 2015 Un grand merci. Ca fonctionne ! :) 1 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