{if $VAR.id == ""} {$block->display("product:cat")} {else} {$method->exe_noauth("product_cat", "user_view")} { if $product_cat_arr } {foreach from=$product_cat_arr item=record}
{translate module=product_cat}menu{/translate} {foreach from=$parent_cat item=cat} > {$cat.name} {/foreach}
{/foreach} {/if} {/if} {if $product_sub_cat != ""}
{foreach from=$product_sub_cat item=record}
{if $list->translate("product_cat_translate","name,description","product_cat_id", $record.id, "cat_translate") } {$cat_translate.name} {else} {$record.name} {/if}

{if $record.thumbnail != "" } {/if} {if $cat_translate.description!= "" } {$cat_translate.description} {else} {translate module=product_cat} desc_none {/translate} {/if}


{/foreach} {/if}
{ if $product_arr } {assign var=entries value=$product_arr} {assign var=columns value=3} {if count($entries) > 0} {math assign="lastcol" equation="x-1" x=$columns} {math assign="width" equation="100 / x" x=$columns} {section name="idx" loop=$entries} {math assign="col" equation="x % y" x=$smarty.section.idx.rownum y=$columns} {if $col == 0} {php} {/if} {if $col == $lastcol || $smarty.section.idx.index_last == true }{/if} {* end of row *} {/section}
{math equation="x-1" x=`$smarty.section.idx.rownum` assign=i} {assign var=product value=$product_arr.$i}

{if $list->translate("product_translate","name,description_short,description_full","product_id", $product.id, "prod_translate") } {$prod_translate.name} {else} {$product.sku} {/if}

{$list->format_currency_num($product.price_base,$smarty.const.SESS_CURRENCY)}
{if $product.thumbnail != ""} {/if}

{if $product.thumbnail != "" } {/if} {if $prod_translate.description_short != "" } {$prod_translate.description_short} {else} {translate module=product_cat} desc_none {/translate} {/if}

{/if} {if $page_pages > 1} {translate module=product_cat} pages {/translate} {foreach from=$page_arr item=page} {if $page == $page_page} {$page} {else} {$page} {/if} {if $page != $page_pages} | {/if} {/foreach} {/if} {else} {translate module=product_cat} products_none {/translate} {/if}