BGBK Posted November 11, 2010 Share Posted November 11, 2010 Hi,I want to add a top banner + description text above the manufacturer product listing (same feature as when listing a product category).Is that possible in some way?See attached jpg (sorry for my drawing skill haha) Link to comment Share on other sites More sharing options...
rocky Posted November 12, 2010 Share Posted November 12, 2010 You will need to edit manufacturer.tpl in your theme's directory: {include file=$tpl_dir./breadcrumb.tpl} {l s='List of products by manufacturer:'} {$manufacturer->name|escape:'htmlall':'UTF-8'} {include file=$tpl_dir./errors.tpl} {if $products} {include file=$tpl_dir./product-sort.tpl} {include file=$tpl_dir./product-list.tpl products=$products} {include file=$tpl_dir./pagination.tpl} {else} {l s='No products for this manufacturer.'} {/if} After the fifth line, add the following code to display the manufacturer logo centred: <img src="{$img_manu_dir}{$manufacturer->id}-medium.jpg" /> Change medium to the size of the image on the Preferences > Images tab that you want to use.Then add the following to display the description entered for the manufacturer on the Catalog > Manufacturers tab: {$manufacturer->description} or the following to use the short description: {$manufacturer->short_description} Link to comment Share on other sites More sharing options...
BGBK Posted November 12, 2010 Author Share Posted November 12, 2010 Great!If I change the "medium" image size, won´t that affect other parts using the medium tag?If not, Do I have to rebuild the thumbnails after changing the size? Link to comment Share on other sites More sharing options...
rocky Posted November 12, 2010 Share Posted November 12, 2010 Only if you change the "medium" size on the Images > Preferences tab. If you just pick one of the existing sizes, it won't affect any other images. Link to comment Share on other sites More sharing options...
BGBK Posted November 12, 2010 Author Share Posted November 12, 2010 I seeSo I can change id}-medium.jpg" /> to id}-category.jpg" /> (its set to 556 x 80 px) and see to it that it is active for manufacturer + maybe upload new manufacturers logo with original size set to 556 x 80?Correct? :-) Link to comment Share on other sites More sharing options...
rocky Posted November 12, 2010 Share Posted November 12, 2010 Correct, though you will need to go to Preferences > Images, edit the "category" size, then tick "Manufacturers", click Save, then regenerate your thumbnails. Link to comment Share on other sites More sharing options...
Konabella Posted November 27, 2010 Share Posted November 27, 2010 @ModeratorThanks so much I was able to get it done.Now just have to get the content about each manufacture :-) Link to comment Share on other sites More sharing options...
Gleydson Posted November 6, 2013 Share Posted November 6, 2013 Muito obrigado! 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