{* product tree for froogle-module and yandexmarket-module *} {literal}
{/literal} {foreach from=$ProductCategories item=_ProductCategory}

{if $_ProductCategory.ExistSubCategories} {if $_ProductCategory.ExpandedCategory} {else} {/if}{else}{/if} | {count array=$smarty.session.selectedProducts[$_ProductCategory.categoryID] item=_ProductsNum} | {if $_ProductCategory.products_count_category} {$_ProductCategory.name} {else} {$_ProductCategory.name} {/if} {if $_ProductCategory.ExpandedCategory or !$_ProductCategory.ExistSubCategories} ( {if $_ProductsNum} {$_ProductsNum} {elseif $smarty.session.checkedCategories[$_ProductCategory.categoryID]} {$_ProductCategory.products_count_category} {else} 0 {/if} / {$_ProductCategory.products_count_category} ) {else} ( {if $smarty.session.selectedProductsIncSub[$_ProductCategory.categoryID]} {$smarty.session.selectedProductsIncSub[$_ProductCategory.categoryID]} {elseif $smarty.session.selectedProductsIncSub[$_ProductCategory.categoryID]} {$_ProductCategory.products_count} {else}0 {/if} / {$_ProductCategory.products_count} ) {/if} {if $showProducts==$_ProductCategory.categoryID and $ProductsNum}
| {$smarty.const.ADMIN_PRODUCT_NAME} | {$smarty.const.ADMIN_PRODUCT_PRICE}, {$smarty.const.STRING_UNIVERSAL_CURRENCY}
{counter start=0 skip=1 print=false} {foreach from=$Products item=_Product} {if $admhl eq 1}
{else}{assign var="admhl" value=1}{/if}
| {$_Product.name} | {if $_Product.Price}{$_Product.Price}{else}{$smarty.const.MSG_COST_DOESNT_EXIST}{/if}
{/foreach}
{$smarty.const.SELECT_BUTTON}
{/if}

{/foreach}