Jump to content

[Résolu] Codage! Probleme de logo fabricant.


Recommended Posts

Bonjour,

 

 

Voila je souhaite afficher sur ma fiche produit le logo du fabricant seulement je n'ai qu'un point d'interrogation à la place, suivre ce lien pour une meilleur compréhension:

 

http://www.kmnautism...l-etanches.html

 

Voici le code que je pensais bon...

 

<div class="logo">

{if $manufacturer.nb_products > 0}<a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$manufacturer.name|escape:'htmlall':'UTF-8'}">{/if}

<img src="{$img_manu_dir}{$manufacturer.image|escape:'htmlall':'UTF-8'}-medium.jpg" alt="" />

{if $manufacturer.nb_products > 0}</a>{/if}

</div>

 

Merci de votre aide.

 

PS: Vous le trouvez comment le site??

Link to comment
Share on other sites

Résolu je met le code si ca intéresse quelqu'un.

 

 

<!-- Fabricant -->

<p id="product_manufacturer">

<span class="editable">

{if $product->id_manufacturer !=0}

<a href="{$link->getPageLink('manufacturer.php',true)}?id_manufacturer={$product->id_manufacturer}">

<img src="{$img_ps_dir}/m/{$product->id_manufacturer}-small.jpg" style="vertical-align:middle" class="product_img_manufacturer" title="{if isset($manufacturers[0].name)} {$manufacturers[0].name} {/if}"/></a>

 

{if isset($manufacturers)}

{foreach from=$manufacturers item='manufacturer' name='manufacturers'}

{if $manufacturer.id_manufacturer==$product->id_manufacturer}

<a href="{$link->getPageLink('manufacturer.php',true)}?id_manufacturer={$product->id_manufacturer}">{$manufacturer.name}</a>

{/if}

{/foreach}

{/if}

{else}

 

{/if}

</span>

</p>

 

Voila bonne journée a tous :)

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...