amoric69 Posted February 18, 2014 Share Posted February 18, 2014 Hello, How to display the manufacturer's name of a product under the product title in the category page ? Thanks, Link to comment Share on other sites More sharing options...
vekia Posted February 18, 2014 Share Posted February 18, 2014 try to use {$product->manufacturer_name} variable in product.tpl file Link to comment Share on other sites More sharing options...
amoric69 Posted February 18, 2014 Author Share Posted February 18, 2014 In the product.tpl, I'm arrived : {if $product_manufacturer->id}<p style="margin-top:50px;"><a href="{$link->getmanufacturerLink($product_manufacturer->id_manufacturer,$product_manufacturer->link_rewrite)}"><img src="{$img_manu_dir}{$product_manufacturer->id}-logo.jpg" class="logo_manufacturer"title="{$product_manufacturer->name}"alt="{$product_manufacturer->name}" /></a></p>{/if} It's OK In the product-list.tpl, i've insert : {if $product_manufacturer->id}<p style="margin-top:50px;"><a href="{$link->getmanufacturerLink($product_manufacturer->id_manufacturer,$product_manufacturer->link_rewrite)}">{$product_manufacturer->name}</a></p>{/if} But it doesn't run. Why ? Link to comment Share on other sites More sharing options...
vekia Posted February 18, 2014 Share Posted February 18, 2014 what is $product_manufacturer how you added it to smarty template? Link to comment Share on other sites More sharing options...
amoric69 Posted February 19, 2014 Author Share Posted February 19, 2014 In modules/blockmanufacturer/blockmanufacturer.tpl Link to comment Share on other sites More sharing options...
vekia Posted February 19, 2014 Share Posted February 19, 2014 but how you added it to smarty array? this variable by default doesnt exist Link to comment Share on other sites More sharing options...
amoric69 Posted February 19, 2014 Author Share Posted February 19, 2014 Ok, no I've don't do that. Wich file ? Link to comment Share on other sites More sharing options...
amoric69 Posted February 19, 2014 Author Share Posted February 19, 2014 Can you help me? I'm a beginner in prestashop. Link to comment Share on other sites More sharing options...
vekia Posted February 20, 2014 Share Posted February 20, 2014 from where you've got this code? you found it somewhere here on board? Link to comment Share on other sites More sharing options...
amoric69 Posted February 20, 2014 Author Share Posted February 20, 2014 In first, I had write : {if $product_manufacturer->id} <span>({$product->manufacturer_name|escape:'htmlall':'UTF-8'})</span>{/if}But it's not correct.With the calling {$product.manufacturer_name} it's all right, it's enough. Link to comment Share on other sites More sharing options...
vekia Posted February 21, 2014 Share Posted February 21, 2014 yea thank you for posting solution can i mark this thread as solved now? Link to comment Share on other sites More sharing options...
amoric69 Posted February 21, 2014 Author Share Posted February 21, 2014 yes dude Link to comment Share on other sites More sharing options...
robbie007 Posted February 23, 2014 Share Posted February 23, 2014 Does anybody now how to add manufacturer (link) to breadcrumb?? 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