ribs Posted April 9, 2010 Share Posted April 9, 2010 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 Link to comment Share on other sites More sharing options...
DenisDT Posted April 9, 2010 Share Posted April 9, 2010 your tag syntax is wrong. you have a > after img. add smarty tags in the right places and you're good to go.second link should be i am a manufacturer. click me. Link to comment Share on other sites More sharing options...
ribs Posted April 12, 2010 Author Share Posted April 12, 2010 Thx, but i know my syntax is wrong. I just need the good smarty tag to display the manufacturer's logo.Can you please give it to me ? Link to comment Share on other sites More sharing options...
DenisDT Posted April 12, 2010 Share Posted April 12, 2010 Link to comment Share on other sites More sharing options...
ribs Posted April 12, 2010 Author Share Posted April 12, 2010 I'm sorry, but it doesn't work...I'm in product.tplWith this : {$manufacturer|var_dump} , I get NULLAnother idea ?Thanks! Link to comment Share on other sites More sharing options...
Adigon89 Posted April 19, 2010 Share Posted April 19, 2010 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... ;-) Link to comment Share on other sites More sharing options...
maofree Posted August 13, 2010 Share Posted August 13, 2010 Hi Adigon89I 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 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 workCan you help me?Thanks Link to comment Share on other sites More sharing options...
maofree Posted August 13, 2010 Share Posted August 13, 2010 Hithe solution is herehttp://www.prestashop.com/forums/viewthread/47049/integration/resolu_image_fabricant_dans_module_manufacturer/bye Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now