{include file="products/products_js.html"} {if $CONFIG.modules.products.avail ne 'Y'} {capture name=products}

{$LABEL.lbl_module_disabled}

{/capture} {include file="_system_/center_block.html" title=$LABEL.lbl_products content=$smarty.capture.products} {elseif $act ne 'show_sform'} {if $cur_category} {capture name=subcats} {if $cur_category.img ne '' and $cur_category.img ne $smarty.const.NO_PICTURE} {$cur_category.alt|replace:' {/if} {$cur_category.h1|default:$cur_category.caption} {if $cur_category.descr and (not $products_pager or $products_pager->getCurrentPage() lte 1)}
{$cur_category.descr}
{/if}
{if $subcategories}
{foreach from=$subcategories item=subcat}
{$subcat.caption|truncate:40:"...":true} ({$subcat.visible_prods_num})
{/foreach}
{if $CONFIG.settings.prodlist_show_zero_qty ne 'on'}
* {$LABEL.note_cat_vis_prod_cnt} {/if}
{/if} {/capture} {include file="_system_/headless_center_block.html" content=$smarty.capture.subcats} {/if} {if $cur_category.img ne '' or $cur_category.descr ne '' or $subcategories} {if $rated_prods} {include file="_system_/center_block.html" title=$LABEL.lbl_popular_prods src="common/products_list.html" products=$rated_prods prod_from="rated"} {elseif $random_prods} {include file="_system_/center_block.html" title=$LABEL.lbl_random_products src="common/products_list.html" products=$random_prods prod_from="random"} {/if} {/if} {if $act eq 'search' or not $rated_prods and not $random_prods} {capture name=products} {if $act eq 'search'}
{include file="products/search/search_form.html"}
{elseif $cur_category.this_visible_prods_num gt 0} {include file="products/filter.html"} {/if} {if $products}
{strip} {if $act != 'search' and $all_manufs}
{$LABEL.lbl_manufacturer}: 
{/if} {/strip}
{strip} {if $count_per_page_steps}
{$LABEL.lbl_max_count_per_page}: 
{/if} {if $act ne 'search' and $CONFIG.modules.products_compare.avail eq 'Y'} {/if} {/strip}
{if $CONFIG.modules.products_compare.avail eq 'Y'}
{include file="products_compare/compare_block.html"}
{/if} {include file="common/page_bar/page_bar.html" pager=$products_pager pos='top'} {if $act eq 'search'} {assign var=prod_from value="search"} {else} {assign var=prod_from value="catalog"} {/if} {include file="common/products_list.html"} {include file="common/page_bar/page_bar.html" pager=$products_pager pos='bottom'} {else} {if $act ne 'search'}

{$LABEL.lbl_no_prods}

{if $subcategories and not $is_filter_enabled} {assign var=no_products_block value=true} {/if} {/if} {/if} {/capture} {if not $no_products_block} {if $act eq 'search'} {include file="_system_/center_block.html" title=$LABEL.lbl_search_results content=$smarty.capture.products} {else} {include file="_system_/headless_center_block.html" content=$smarty.capture.products} {/if} {/if} {/if} {else} {capture name=search}
{include file="products/search/search_form.html"}
{/capture} {include file="_system_/center_block.html" title=$LABEL.lbl_prod_search content=$smarty.capture.search} {/if}