Hello, Guest |
| Register
Remember me Forgot password ?
Site Map Site Map Contact us Contact us
PrestaShop e-commerce software
  810 users online

 
Post Reply
New Topic
[SOLVED] Manufacturer Logo on Product Page

offline
Posted: 23 October 2009 08:03 AM   [ Ignore ]
Regular
RankRank

Messages :

  • total: 75
  • last 7 days: 0
Joined: 2009-07-02

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?

[/code]img src=" {$img_manu_dir}{$product->id_manufacturer}.jpg " [code]

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

Thanks a lot!
Kim

 
offline
Posted: 26 October 2009 10:18 AM   [ Ignore ]   [ # 1 ]
Regular
RankRank

Messages :

  • total: 75
  • last 7 days: 0
Joined: 2009-07-02

Hello. I’ve found the solution for displaying the brand in the manufacturer page. Attached is the manufacturer.tpl. Feel free to use it!

File Attachments
manufacturer.zip  (File Size: 1KB - Downloads: 156)
 
offline
Posted: 05 November 2009 12:58 AM   [ Ignore ]   [ # 2 ]
Apprentice
RankRank

Messages :

  • total: 26
  • last 7 days: 0
Joined: 2009-07-28

good work thank you!!!!

 Signature 

http://www.wildflowerweb.com.au

 
offline
Posted: 10 November 2009 12:12 PM   [ Ignore ]   [ # 3 ]
Regular
RankRank

Messages :

  • total: 75
  • last 7 days: 0
Joined: 2009-07-02

No worries. =)

 
offline
Posted: 14 November 2009 02:16 AM   [ Ignore ]   [ # 4 ]
Beginner
Rank

Messages :

  • total: 8
  • last 7 days: 0
Joined: 2009-09-01

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

Thanks

 Signature 

Jacobo

 
offline
Posted: 14 November 2009 02:29 AM   [ Ignore ]   [ # 5 ]
Beginner
Rank

Messages :

  • total: 8
  • last 7 days: 0
Joined: 2009-09-01

Ok, i get it:

<img src="{$img_manu_dir}{$product.id_manufacturer}-small.jpg" alt="{$product.manufacturer_name|escape:'htmlall':'UTF-8'}" title="{$product.manufacturer_name|escape:'htmlall':'UTF-8'}">

 Signature 

Jacobo

 
offline
Posted: 14 November 2009 10:52 AM   [ Ignore ]   [ # 6 ]
Club Member
RankRankRank

Messages :

  • total: 169
  • last 7 days: 0
Joined: 2008-11-30

Great!!!

Thanks for share it.

bye

 Signature 

grin Mr Rem rolleyes

 
offline
Posted: 26 November 2009 02:06 PM   [ Ignore ]   [ # 7 ]
Regular
RankRank

Messages :

  • total: 75
  • last 7 days: 0
Joined: 2009-07-02

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.com/thread-437.html

Cheers

 
offline
Posted: 27 November 2009 04:38 PM   [ Ignore ]   [ # 8 ]
Newcomer
Rank

Messages :

  • total: 3
  • last 7 days: 0
Joined: 2009-11-27

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 :(

 
offline
Posted: 18 May 2010 12:53 PM   [ Ignore ]   [ # 9 ]
Apprentice
RankRank

Messages :

  • total: 24
  • last 7 days: 0
Joined: 2009-11-17

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!

Image Attachments
Screen shot 2010-05-18 at 12.02.34.png
 
 
 
Fast Reply
New Topic