Ptimax Posted May 2, 2012 Share Posted May 2, 2012 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 More sharing options...
Patric Posted May 2, 2012 Share Posted May 2, 2012 Topic déplacé dans la bonne section ("Développement"). Link to comment Share on other sites More sharing options...
Ptimax Posted May 2, 2012 Author Share Posted May 2, 2012 Oups désolé merci . Link to comment Share on other sites More sharing options...
Ptimax Posted May 2, 2012 Author Share Posted May 2, 2012 Personne n'as une idée? Si vous voulez plus de précision ou si je ne suis pas claire n'hésitez pas à me le dire. Link to comment Share on other sites More sharing options...
Ptimax Posted May 3, 2012 Author Share Posted May 3, 2012 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 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