tomitos Posted July 9, 2010 Share Posted July 9, 2010 Hi,could anyone help me with modification of Manufacurers module to get displayed full list of Manufacturers in footer?I am able to move module to footer but not being able to redesign it in a simple list.Or maybe could be done in easier way?I am trying to get something like this:http://www.progearsupply.com/Thanks. Link to comment Share on other sites More sharing options...
rocky Posted July 10, 2010 Share Posted July 10, 2010 Create a file modules/blockmanufacturer/blockmanufacturer-footer.tpl containing the following: {l s='We carry the following brands:' mod='blockmanufacturer'} {foreach from=$manufacturers item=manufacturer name=manufacturer_list} <a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}" title="{l s='More about' mod='blockmanufacturer'} {$manufacturer.name}">{$manufacturer.name|escape:'htmlall':'UTF-8'}{if !$smarty.manufacturer_list.last},{/if} {/foreach} Then add the following function before the last } in modules/blockmanufacturer/blockmanufacturer.php: function hookFooter($params) { global $smarty, $link; $smarty->assign(array( 'manufacturers' => Manufacturer::getManufacturers(), 'link' => $link, )); return $this->display(__FILE__, 'blockmanufacturer-footer.tpl'); } I haven't tested this code, but it should let you transplant the manufacturer block in the footer, then display all the manufacturers like on that site. 1 Link to comment Share on other sites More sharing options...
tomitos Posted July 10, 2010 Author Share Posted July 10, 2010 Hi Rocky!Thanks! I was hoping for your answer, since you are one of those guys which are makeing our lives (non programers) much easier. :-) I have been trying to find solution (combining tips) but no luck. If someone else would like to use this solution (which I thing is very practical if you have a lot of brands - also for SEO) there are just two modifications from upper instructions:new .tlp file should be: blockmanufacturer-footer.tpl (not blockmanufacter-footer.tpl)and you need (I did that) to remove (not to paste) code which is coded lower. Paste only code between getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}" title="{l s='More about' mod='blockmanufacturer'} {$manufacturer.name}">{$manufacturer.name|escape:'htmlall':'UTF-8'} {if !$smarty.manufacturer_list.last},{/if} Link to comment Share on other sites More sharing options...
rocky Posted July 10, 2010 Share Posted July 10, 2010 Thanks for letting me know about the typo. I've corrected my post above. Please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
jojolechat Posted February 15, 2011 Share Posted February 15, 2011 Hello,I made the changes as indicated, but nothing appears in the footer.I use the manufacturer logo.Thank you for your help 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