Jump to content

RESOLU : Ajouter le nom du fournisseur sur product-list.tpl


Recommended Posts

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 by celinem01 (see edit history)
Link to comment
Share on other sites

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}

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...