dzoxen Posted April 23, 2014 Share Posted April 23, 2014 Hi there, I would like to show only these three categories, and I have more, but need to show on index only these three, actually, only links to these. Can I customize like that? Can I use this code: <ul class="tree {if $isDhtml}dhtml{/if}"> {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} </ul> and if I could check it with id of category? I'd love to make it happen, and don't have much time for this, because I need to finish with this css shortly.. I'd appreciate any kind of guidance and help of any kind. Thank You in advance Link to comment Share on other sites More sharing options...
vekia Posted April 23, 2014 Share Posted April 23, 2014 you can check it in category_tree_branch.tpl with node.id - this is and id of category, you can use if conditions there {if $node.id==3} display {/if} Link to comment Share on other sites More sharing options...
dzoxen Posted April 24, 2014 Author Share Posted April 24, 2014 I did that, and I understand that the $node.children are subcategories, and I need number of products here, can I get them if category is not set? Link to comment Share on other sites More sharing options...
vekia Posted April 24, 2014 Share Posted April 24, 2014 you mean number of products associated with category with id $node.id ? Link to comment Share on other sites More sharing options...
dzoxen Posted April 30, 2014 Author Share Posted April 30, 2014 Yes, I need number of products associated with category, can I have that number? Am I right about $node.children? Are those subcategories? Link to comment Share on other sites More sharing options...
Recommended Posts