{if $used_equipment_visible_new=='Yes'} {**$categories|print_r**} {literal} {/literal}
All Used Equipment
{assign var="count" value=0} {foreach from=$categories item="category" name="cat"} {if $category.parent == 1}
{$category.name} ({$category.pk_num_products}) {if !empty($category.children)}
ยป
{/if}
{math equation="x+1" assign="count" x=$count} {if !empty($category.children)} {*$category.children|@print_r*}
{assign var="categories" value=$category.children} {include file="templates/panels/includes/panel-catalog-categories-item2.html"}
{/if}
{if $count == $used_equip_count}
{/if} {/if} {/foreach}
{if $count > $used_equip_count}
Show All
{/if} {/if}