{if isset($category)} {if $category->id AND $category->active} {capture name=title} {strip} {$category->name|escape:'htmlall':'UTF-8'} {if isset($categoryNameComplement)} {$categoryNameComplement|escape:'htmlall':'UTF-8'} {/if} {/strip} {/capture} {if $products}{assign var=categoryProducts value=$products}{else}{assign var=categoryProducts value=null}{/if} {include file="$tpl_dir.@if (!control.isCommon){/includes/product-grid_@(id).tpl}else{/product-grid.tpl}" products=$categoryProducts categoryTitle=$smarty.capture.title} {elseif $category->id} {capture name=warning}{l s='This category is currently unavailable.'}{/capture} {include file="$tpl_dir./warning.tpl" warning=$smarty.capture.warning} {/if} {/if} {* To avoid duplication output via header_products.tpl and product-list.tpl which is filled always*} {assign var=template value=null scope="global"}