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}
{/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.
essayes plutot çà pour la page manufacturer.tpl:
Pierre.
Rejoins la communauté FR de Prestashop et discutes avec elle ! シ
Connecte toi sur www.cgichat.epiknet.org, choisis toi un nom, rejoins le canal #prestashop !
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}
{/if}
Rejoins la communauté FR de Prestashop et discutes avec elle ! シ
Connecte toi sur www.cgichat.epiknet.org, choisis toi un nom, rejoins le canal #prestashop !
Y a cela aussi :
{if $product->manufacturer_name}
getManufacturerLink($product->id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">
{/if}
++
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:
getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$manufacturer.name|escape:'htmlall':'UTF-8'}">

{foreach from=$manufacturers item=manufacturer}
{/foreach}
and the problem is with $manufacturer.image in

Can you help me? (use the code's tag to post your solution)
Thanks
Don't use : {$img_manu_dir}{$manufacturer.image|escape:'htmlall':'UTF-8'}-medium.jpg" for img...
But use the $manufacturer.id_manufacturer for get your good name of your picture
Bye
It works
I will post the module
It will be similar to this
http://www.prestasho..._per_le_offerte
bye




Back to top










