PrestaShop Forums: [RESOLU] Image fabricant dans module manufacturer - PrestaShop Forums

Jump to content


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.

NYC

Vous parlez français ? par ici !


[RESOLU] Image fabricant dans module manufacturer


[RESOLU] Image fabricant dans module manufacturer

#1 atipix

    PrestaShop Apprentice

  • 05 Feb 2010
  • Members
  • PipPip
  • 25 posts

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}

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.

#2

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 11 March 2010 - 05:46 PM

Salut atipix,
essayes plutot çà pour la page manufacturer.tpl:





Pierre.

#3

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

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}

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


{/if}

#4

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 15 March 2010 - 06:39 PM

Non, en fait le bon code c'est :

{if $product_manufacturer->id}

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


{/if}

CA MARCHE !!!

#5

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 15 March 2010 - 07:51 PM

Si CA MARCHE !!! un petit RESOLU la prochaine fois ;) -yoya971

#6

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 16 March 2010 - 07:18 AM

Et comment fait on ?

#7

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

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}

++

#8

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

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

#9

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 August 2010 - 12:15 PM

Hy,


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

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

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

#11

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 August 2010 - 02:00 PM

Module here
http://www.prestasho...r_i_produttori/

ciaooooooooo





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users