Jump to content

Manufacturer's logo in product page


ribs
 Share

Recommended Posts

Hi everyone,

I would like to add the logo of the manufacturer for each product.
I can have the name of the manufacturer, and a links to it's page, but how can i get the logo ?

I tried the following, but doesn't work :

getImageLink($product->link_rewrite, $product->manufacturer_image, 'large')}" />



PS : Here's how i get a link to the manufacturer :

getmanufacturerLink($product->id_manufacturer, $manufacturer.link_rewrite)}" title="{l s='List items made by'} {$product->manufacturer_name|escape:'htmlall':'UTF-8'}">{$product->manufacturer_name|escape:'htmlall':'UTF-8'}



Thanks for your help!
Arnaud

Share this post


Link to post
Share on other sites

i am using this code:

//in product.tpl




//in product.php i am adding the variable within the arrays (can be using single variable) so it can be used on product.tpl
$smarty->assign(array(
...
'manufacturer_image'=>$product->id_manufacturer,
...
));



hope this help...
;-)

Share this post


Link to post
Share on other sites

  • 3 months later...

Hi Adigon89
I hope you can help me with the same problem but in a different file.
I do a new module for the block of manufacturers with slideshow ,but I have the problem with manufacturer's image, because they don't appear.

getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$manufacturer.name|escape:'htmlall':'UTF-8'}">



everything is ok ,except $manufacturer.image ,if I change that with your code
%7B$img_manu_dir%7D%7B$manufacturer_imag

and add in my .php

  'manufacturer_image'=>$product->id_manufacturer,        in smarty


and this out of smarty
$product = Product::getProducts(intval($params['cookie']->id_lang));
it doesn't work
Can you help me?
Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More