Kungpin Posted November 17, 2009 Share Posted November 17, 2009 Hi, I want to add Manufacture Name and description into the product page (product.tpl)I solved the name adding by adding this line:{$product->manufacturer_name|escape:'htmlall':'UTF-8'}But i also want the manufacture description to be displayed, I tryed this code but failed:{$manufacturer->description|escape:'htmlall':'UTF-8'}Please Help me!? Link to comment Share on other sites More sharing options...
andrew Posted February 15, 2010 Share Posted February 15, 2010 HiDid you manage to solve this?I have managed to put the manufacturer name in the product page - but would also like the description.- Andrew Link to comment Share on other sites More sharing options...
rocky Posted February 15, 2010 Share Posted February 15, 2010 The code isn't working because the manufacturer object isn't being passed into product.tpl. To fix this, you need to add the following before the $smarty->display at the bottom of product.php: $manufacturer = new Manufacturer($product->id_manufacturer, intval($cookie->id_lang)); $smarty->assign('manufacturer', $manufacturer); Then you can use the following code anywhere in product.tpl in your theme's directory: {$manufacturer->description} Link to comment Share on other sites More sharing options...
andrew Posted February 15, 2010 Share Posted February 15, 2010 Fantastic - thank you so much(Now I have to add the descriptions on my live site before uploading the edited files)This does exactly what I wanted.- Andrew Link to comment Share on other sites More sharing options...
cholita Posted May 13, 2010 Share Posted May 13, 2010 It doesn't work for me.... ??? blanck content on the manufacturer zone... Link to comment Share on other sites More sharing options...
mehdi2405 Posted December 14, 2010 Share Posted December 14, 2010 bsoircomment fais tu stp pour y rajouter une condition comme :si presence d'une description alors la mettre sinon blancmerci Link to comment Share on other sites More sharing options...
adammontague Posted April 15, 2011 Share Posted April 15, 2011 Has this method changed at all in 1.4?I have tried your solution but nothing is working for me. Thanks... 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