{if="$current_category.parent_id == 0"}
{loop="$product_category[$current_category.id]"} {if="$counter < 4"}
{/if} {/loop}
{else}
{/if}