{* Шаблон вывода спецпредложений *} {if $popular_products} {* $maxshow - количество выводимых товаров *} {assign var="maxshow" value=8}

{section name=i loop=$popular_products max=$maxshow} {if $smarty.section.i.index is div by 4}
{/if} {if $popular_products[i].cena <= 0}{$smarty.const.STRING_NOPRODUCT_IN}{else}{$popular_products[i].Price}{/if} {$popular_products[i].name} {if ($smarty.section.i.index+1) is div by 4}
{else} | {/if} {/section}

{else}
{$smarty.const.STRING_EMPTY_CATEGORY}
{/if}