Pete Nice Posted January 25, 2014 Share Posted January 25, 2014 (edited) In my 1.4.7 shop I'm displaying my categories using if statements: {foreach from=$categories item=category} {if $category.id_category == 7 || $category.id_category == 20} <option class="drop" value="{$link->getcategoryLink($category.id_category, $category.link_rewrite)}">{$category.name|escape:'htmlall':'UTF-8'}</option> {/if} {/foreach} This doesn't seem to work in the blockcategories in 1.5.6.1 - any ideas on how to change below to work in the same way: {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} Edited January 25, 2014 by Pete Nice (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 26, 2014 Share Posted January 26, 2014 what you've got in $categories variable? Link to comment Share on other sites More sharing options...
Recommended Posts