{* *}{strip} {* *} {lastProducts count=300 assign=list} {$collection = []} {if !empty($list)} {foreach $list as $item} {echoVar from='item->category_plural' assign=name} {$name = ($name != '') ? $name : 'Разное'} {if !isset($collection[$name])} {$collection[$name] = []} {/if} {$collection[$name][] = $item} {/foreach} {$dummy = ksort($collection, $smarty.const.SORT_STRING)} {/if} {* *} {if !empty($collection)} {foreach $collection as $category => $items} {inputValue from=category assign=category} {* *}

{$category} {**} {count($items)}

{* *} {foreach $items as $item} {include 'common/product-card.htm' fullview = FALSE backurl = '' number = $item@iteration} {/foreach}
{/foreach} {* *} {else} {include 'common/no-items.htm' tab = 'Каталог' title = 'Каталог по разделам' message = 'Нет товаров!' extra = ''} {/if} {* *} {$count = count($collection)} {* *} {if $count < 3}
{if $count < 2}
{/if} {/if} {* *} {$title = 'Каталог по разделам' scope=global} {$description = '' scope=global} {$keywords = '' scope=global} {* *} {$menuSelectedId = 6 scope=global} {/strip}