Jump to content

[RESOLU] Image fabricant dans module manufacturer


Recommended Posts

Bonjour à tous,

je souhaite afficher l'image du fabricant dans le module manufacturer,
pour cela j'ai édité manufacturer.tpl où j'ai inséré :

{if $product->manufacturer_name}

getmanufacturerLink($product->id_manufacturer, $product_manufacturer->link_rewrite)}" title="{$product->manufacturer_name}">
id}-medium.jpg" alt="{$product_manufacturer->name}" vspace="3px"/>


{/if}

Ça fonctionne tant que je ne suis pas logué.
Dès que je me connecte en tant que client l'image fabricant ne s'affiche plus !
Avez-vous une idée d'où vient l'erreur SVP ?

Merci pour votre aide.
Link to comment
Share on other sites

J'ai contourné le problème,
en insérant une variable test dans la page product.tpl

{if $product->manufacturer_name}
{assign var='test' value=1}
{/if}

Et selon le retour de test on affiche ou pas l'image dans le bloc fabricant en rapport avec le produit affiché :

{if $test}

getmanufacturerLink($product->id_manufacturer, $product_manufacturer->link_rewrite)}" title="{$product->manufacturer_name}">
id}-medium.jpg" alt="{$product_manufacturer->name}"/>


{/if}
Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...

Hi
Sorry, but I can't speak in france.
I have the same problem and I have tried your solution but it doesn't work with me.
I have finished a module for block of manufacturers with slideshow, everything is ok but I don't know how to show the manufacturers's images. I have tried some solutions. My code in .tpl is:

>
</pre>
<ul>

                      {foreach from=$manufacturers item=manufacturer}



getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$manufacturer.name|escape:'htmlall':'UTF-8'}">




{$manufacturer.name|escape:'htmlall':'UTF-8'|truncate:40:'...'}


getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">
                                   {$manufacturer.description|truncate:60:'...'}






                      {/foreach}

</ul>


and the problem is with $manufacturer.image in
%7B$img_manu_dir%7D%7B$manufacturer.imag

Can you help me? (use the code's tag to post your solution)
Thanks

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