{* product tree for froogle-module and yandexmarket-module *} {literal} {/literal}
{if $_ProductCategory.ExistSubCategories}
{if $_ProductCategory.ExpandedCategory}
{else}
{/if}
{else}
{/if}
{count array=$session_selectedProducts[$_ProductCategory.categoryID] item=_ProductsNum}
{if $_ProductCategory.products_count_category}
{$_ProductCategory.name|escape:'html'}
{else}
{/if}
{if $_ProductCategory.ExpandedCategory or !$_ProductCategory.ExistSubCategories}
(
{if $_ProductsNum}
{$_ProductsNum}
{elseif $session_checkedCategories[$_ProductCategory.categoryID]}
{$_ProductCategory.products_count_category}
{else}
0
{/if}
/
{$_ProductCategory.products_count_category}
)
{else}
(
{if $session_selectedProductsIncSub[$_ProductCategory.categoryID]}
{$session_selectedProductsIncSub[$_ProductCategory.categoryID]}
{elseif $session_selectedProductsIncSub[$_ProductCategory.categoryID]}
{$_ProductCategory.products_count}
{else}0
{/if}
/
{$_ProductCategory.products_count}
)
{/if}
{if $showProducts==$_ProductCategory.categoryID and $ProductsNum}
|
|||||||||