PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

[SOLVED] Manufacturer Logo on Product Page

10 replies to this topic
#1
applestarz

    PrestaShop Apprentice

  • Members
  • PipPip
  • 67 posts
Hi everyone!

I want to insert an image of the manufacturer's logo on each product. I think this is the code. Where do I insert it in product.tpl?

< img src=" {$img_manu_dir}{$product->id_manufacturer}.jpg " > 


Also, what do I need to insert to display the manufacturer's logo in each manufacturer category?

Thanks a lot!
Kim

#2
applestarz

    PrestaShop Apprentice

  • Members
  • PipPip
  • 67 posts
Hello. I've found the solution for displaying the brand in the manufacturer page. Attached is the manufacturer.tpl. Feel free to use it!

Attached Files



#3
kyls

    PrestaShop Apprentice

  • Members
  • PipPip
  • 27 posts
good work thank you!!!!

#4
applestarz

    PrestaShop Apprentice

  • Members
  • PipPip
  • 67 posts
No worries. =)

#5
jacoborus

    PrestaShop Newbie

  • Members
  • Pip
  • 7 posts
Hi,
How to insert this image in product-list.tpl?

Thanks
Jacobo

#6
jacoborus

    PrestaShop Newbie

  • Members
  • Pip
  • 7 posts
Ok, i get it:

{$product.manufacturer_name|escape:'htmlall':'UTF-8'}

Jacobo

#7
mr_rem

    PrestaShop Apprentice

  • Members
  • PipPip
  • 154 posts
Great!!!

Thanks for share it.

bye
:-) Mr Rem :roll:

#8
applestarz

    PrestaShop Apprentice

  • Members
  • PipPip
  • 67 posts
Hi everyone! The download above I have provided is to display the manufacturer logo in each manufacturer page. If you want to display the logo in each product's page, then please read this guide:
http://prestaportal....thread-437.html

Cheers

#9
StudioWorkplace

    PrestaShop Newbie

  • Members
  • Pip
  • 2 posts
Does anyone else find this leaves a little "p" under the image? (when using the English language pack) and an "H" (when using Russian).

Maybe I missed something during configuration as I cannot find what would be causing the P or the H in the TPL file :(

#10
goosedesign

    PrestaShop Apprentice

  • Members
  • PipPip
  • 51 posts
In case anyone is still not sure about this, here's a snapshot of my working code (which silly forum software can't strip). It includes a check to see if the product has a manufacturer, thereby avoiding 404 images, and also links the image to the manufacturer page. Thanks for the help!

Attached Files



#11
poulks

    PrestaShop Newbie

  • Members
  • Pip
  • 1 posts

From 1259329081:

Does anyone else find this leaves a little "p" under the image? (when using the English language pack) and an "H" (when using Russian).

Maybe I missed something during configuration as I cannot find what would be causing the P or the H in the TPL file :(


I understand what happens. It was the same thing for me. Actually the letters "p" or "H" and for me "a" and ">" were the first letter of the first word of the manufacturer description.

I changed a few things and it now works for me. Anyway, I'm not a programmer at all I just put my hands in and tried to make a few change, the result is that it now works for me. IF A REAL PROG COULD HAVE A LOOK TO BE SURE TO NOT SPREAD my mistakes, it would be great.

Hope this help.

Attached Files