morp Posted June 16, 2010 Share Posted June 16, 2010 Hello everyone, I install the block manifacturer(producers).I create a new manufacturer in the BO with description and pictures, saved correctly.The problem is that the front office, when I click on a manufacturer in the block, I get only a list of products related to that manufacturer and neither the image or description.Is this normal? do I have to do something else?thanksbye Link to comment Share on other sites More sharing options...
rocky Posted June 17, 2010 Share Posted June 17, 2010 Yes, that is normal. You'd need to modify manufacturer.tpl in your theme's directory and add the following code before line 7: <img src="{$img_manu_dir}{$manufacturer->id|intval}-medium.jpg" alt="" /> This code will display the "medium" size of the manufacturer's logo on its product listings. It will only work if you add logos to every one of your manufacturers though. It would be more difficult to write code that checks whether the logo exists before trying to display it. Link to comment Share on other sites More sharing options...
yaya Posted June 17, 2010 Share Posted June 17, 2010 Hi,i thiik there is a problem with this code ?thx Link to comment Share on other sites More sharing options...
rocky Posted June 17, 2010 Share Posted June 17, 2010 Yes, the PrestaShop forums deleted part of my code. :-SI've fixed it. Link to comment Share on other sites More sharing options...
morp Posted June 17, 2010 Author Share Posted June 17, 2010 Thank you rocky!that is for viewing image or logo. But for the description (short and long) of the manifacturer? Is there any other PS variable that I have to print in the page? many thanks Link to comment Share on other sites More sharing options...
rocky Posted June 17, 2010 Share Posted June 17, 2010 I think the following will work: {$manufacturer->description} Link to comment Share on other sites More sharing options...
guest* Posted September 27, 2010 Share Posted September 27, 2010 This works. Thx.... 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