Jump to content

Category Display


Recommended Posts

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 by Pete Nice (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...