Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.
Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

Vous parlez français ? par ici !
Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

Vous parlez français ? par ici !
[RESOLU] Image fabricant dans module manufacturer
Started by atipix, Mar 11 2010 08:31 AM
[RESOLU] Image fabricant dans module manufacturer
#1
Posted 11 March 2010 - 08:31 AM
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}
{/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.
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.
#2
Posted 11 March 2010 - 05:46 PM
Salut atipix,
essayes plutot çà pour la page manufacturer.tpl:
Pierre.
essayes plutot çà pour la page manufacturer.tpl:
Pierre.
#3
Posted 12 March 2010 - 07:25 AM
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}
{/if}
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}
#4
Posted 15 March 2010 - 06:39 PM
Non, en fait le bon code c'est :
{if $product_manufacturer->id}
{/if}
CA MARCHE !!!
{if $product_manufacturer->id}
{/if}
CA MARCHE !!!
#5
Posted 15 March 2010 - 07:51 PM
Si CA MARCHE !!! un petit RESOLU la prochaine fois ;) -yoya971
#6
Posted 16 March 2010 - 07:18 AM
Et comment fait on ?
#7
Posted 08 July 2010 - 08:50 AM
Salut,
Y a cela aussi :
{if $product->manufacturer_name}
getManufacturerLink($product->id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">
id_manufacturer}-medium.jpg" alt="{$product->manufacturer_name}" title="{$product->manufacturer_name}">
{/if}
++
Y a cela aussi :
{if $product->manufacturer_name}
getManufacturerLink($product->id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">
{/if}
++
#8
Posted 13 August 2010 - 11:48 AM
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:
and the problem is with $manufacturer.image in

Can you help me? (use the code's tag to post your solution)
Thanks
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
#9
Posted 13 August 2010 - 12:15 PM
Hy,
Bye
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
#10
Posted 13 August 2010 - 12:33 PM
Thank you very much
It works
I will post the module
It will be similar to this
http://www.prestasho..._per_le_offerte
bye
It works
I will post the module
It will be similar to this
http://www.prestasho..._per_le_offerte
bye
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users













