{* форма поиска *} {if 1 == 2 }
{/if}
{*if isset($smarty.get.option) && $smarty.get.option != 'cart' }
{/if *}
{*f\pa($shop)*} {* карточка заказа *} {if isset($smarty.get.option) && $smarty.get.option == 'cart' } {include file="./sh.cart.htm" } {* выбран 1 каталог с товарами*} {else if isset($smarty.get.ext1) && is_numeric($smarty.get.ext1) && isset( $shop.cats[$smarty.get.ext1] ) }

{$shop.cats[$smarty.get.ext1]['name']}

{*f\pa($shop.cats)*} {if isset($shop.cats[$smarty.get.ext1]['down'])} {/if} {if isset($shop.items) } {$n = 1} {foreach $shop.items as $k1 => $v1 } {*$v1.cat*} {if $v1.cat == $smarty.get.ext1 || isset($v.down[$v1.cat]) } {*f\pa($v1)*} {include file="./sh.item.mini.htm" } {$n = $n+1} {/if} {/foreach} {/if}
{* смотрим магазин, не выбрали ничего *} {else} {*

Каталоги и товары

*} {foreach $shop.cats as $k => $v } {*f\pa($v)*} {if $v.up_id == '' && isset($v['items-kolvo']) }

{$v.name}

{foreach $shop.items as $k1 => $v1 } {if $v1.cat == $k || $v1.cat == $v.up_id || isset($v.down[$v1.cat]) } {*f\pa($v1)*} {include file="./sh.item.mini.htm" } {/if} {/foreach}
{/if} {/foreach} {/if}