Andy1 Posted October 22, 2011 Share Posted October 22, 2011 I have filled in the 'Description' box for the manufactures, but I assumed this would be the description that is at the top of the page, above all products for sale by that manufacturer. The 'Description' seems to work when viewing all manufacturers as a list (I would call this a short description) I have tired filling in the 'short desciption' box, but this appears to do nothing! How do I get the description and image at the top of the page, above all products by that manufacturer? This is where the description is being placed at the moment by default by prestashop: Look at the 4th manufacturer from the bottom: http://www.justlube.co.uk/manufacturers Here is where I would like that description: http://www.justlube.co.uk/19_swiss-navy Many Thanks Andy Link to comment Share on other sites More sharing options...
Andy1 Posted October 22, 2011 Author Share Posted October 22, 2011 I tried uploading the original Manufacturers tpl file as I thought maybe the one I had was corrupt, but it makes no difference. What is the point in the Short Description field? It does nothing! Link to comment Share on other sites More sharing options...
jhnstcks Posted October 22, 2011 Share Posted October 22, 2011 Try this <img src="{$img_manu_dir}{$manufacturer->id}-medium.jpg" /> {$manufacturer->short_description} directly under the h1 tag in manufacturer.tpl If you don't want to use the manufacturer short description just remove the section of code that says short_ Link to comment Share on other sites More sharing options...
Andy1 Posted October 23, 2011 Author Share Posted October 23, 2011 Thank you, it works. How would I change the manufacturers list so it displays the short description? Also, is there a way to centralise the image on the manufacturers page? Thank you for your help. Andy Link to comment Share on other sites More sharing options...
jhnstcks Posted October 23, 2011 Share Posted October 23, 2011 In manufacturer-list.tpl change the following line {$manufacturer.description} to [code{$manufacturer.short_description}[/code]To center the logo in manfufactuer.tpl change it to <p style="text-align:center;" ><img src="{$img_manu_dir}{$manufacturer->id}-medium.jpg" /></p> If you want a bigger logo change the medium to large or home Link to comment Share on other sites More sharing options...
Andy1 Posted October 23, 2011 Author Share Posted October 23, 2011 The centre image worked perfectly, but I am having problems with the short description. My manufacturer-list.tpl file now looks like this: {if $manufacturer.nb_products > 0}<a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">{/if} {$manufacturer.short_description} But the description in the list is now blank. http://www.justlube.co.uk/manufacturers I have defiantly got a description in the box in the back office, and I can't see a mistake in the tpl file. Have I missed something obvious out? Thanks again for your help with this. Andy Link to comment Share on other sites More sharing options...
jhnstcks Posted October 23, 2011 Share Posted October 23, 2011 Its really weird I can't see why its not working, and its not just your site, can't get it to work on any of my sites either. Will have a longer look at it tomorrow when I have more time. 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