MrCarrick Posted August 1, 2011 Share Posted August 1, 2011 Hello, Looking around the forum and I cannot find a solution. Probably because it's such a simple issue! All I want to do is produce a simple horizontal text list of every category on our store in the footer area of our template regardless of which page the user is on... I could easily do this with an additional query to the database as I'm not very confident with smarty. However for the sake of performance I would prefer to utilise smarty to do this. {foreach from=$blockCategTree.children item=child name=blockCategTree} {if $smarty.foreach.blockCategTree.last} {include file=$branche_tpl_path node=$child last='true'} {else} {include file=$branche_tpl_path node=$child} {/if} {/foreach} I've gotten the above from block categories but can't get my head around bringing all categories. Any help for this noobish request would be very much appreciated! Cheers, Link to comment Share on other sites More sharing options...
MrCarrick Posted August 2, 2011 Author Share Posted August 2, 2011 Anyone? I can't help but think this is a trivial issue that I'm being blind to see Link to comment Share on other sites More sharing options...
shokinro Posted August 2, 2011 Share Posted August 2, 2011 while I was writing instruction for you on how to create a new hook to footer in blockcategories, I checked the source code of module blockcategories in 1.4.3, I found there is existing blockcategories_footer.tpl file and there is existing hookFooter() function in the module. So I think the function is already there in 1.4.3 and above. if you are using lower, you can just go download the new version of module. so what you need to do is just to modify the theme file to fit your own needs. And I suggest you create a new one to override existing one instead of changing existing one. you can add a new theme file at following location /YouStoreRoot/themes/modules/blockcategories/blockcategories_footer.tpl by this, it will override the following one /YouStoreRoot/modules/blockcategories/blockcategories_footer.tpl 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