PrestaShop Forums: [SOLVED] Manufacturer Logo on Product Page - 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 !


[SOLVED] Manufacturer Logo on Product Page


[SOLVED] Manufacturer Logo on Product Page

#1 applestarz

    PrestaShop Apprentice

  • 02 Jul 2009
  • Members
  • PipPip
  • 66 posts
  • Location:Sydney, Australia

Posted 23 October 2009 - 05:03 AM

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

  • 02 Jul 2009
  • Members
  • PipPip
  • 66 posts
  • Location:Sydney, Australia

Posted 26 October 2009 - 08:18 AM

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 File(s)



#3 kyls

    PrestaShop Apprentice

  • 27 Jul 2009
  • Members
  • PipPip
  • 27 posts
  • Location:Raglan New Zealand

Posted 04 November 2009 - 10:58 PM

good work thank you!!!!

#4 applestarz

    PrestaShop Apprentice

  • 02 Jul 2009
  • Members
  • PipPip
  • 66 posts
  • Location:Sydney, Australia

Posted 10 November 2009 - 10:12 AM

No worries. =)

#5 jacoborus

    PrestaShop Newbie

  • 01 Sep 2009
  • Members
  • Pip
  • 7 posts

Posted 14 November 2009 - 12:16 AM

Hi,
How to insert this image in product-list.tpl?

Thanks
Jacobo

#6 jacoborus

    PrestaShop Newbie

  • 01 Sep 2009
  • Members
  • Pip
  • 7 posts

Posted 14 November 2009 - 12:29 AM

Ok, i get it:

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

Jacobo

#7 mr_rem

    PrestaShop Apprentice

  • 30 Nov 2008
  • Members
  • PipPip
  • 154 posts

Posted 14 November 2009 - 08:52 AM

Great!!!

Thanks for share it.

bye
:-) Mr Rem :roll:

#8 applestarz

    PrestaShop Apprentice

  • 02 Jul 2009
  • Members
  • PipPip
  • 66 posts
  • Location:Sydney, Australia

Posted 26 November 2009 - 12:06 PM

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

  • 27 Nov 2009
  • Members
  • Pip
  • 2 posts

Posted 27 November 2009 - 02:38 PM

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

  • 17 Nov 2009
  • Members
  • PipPip
  • 51 posts

Posted 18 May 2010 - 09:53 AM

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 File(s)



#11 poulks

    PrestaShop Newbie

  • 19 Jun 2011
  • Members
  • Pip
  • 1 posts

Posted 24 June 2011 - 06:39 AM

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 File(s)







1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users