2009-08-03 04:10:16 +00:00
|
|
|
{if $VAR.id == ''}
|
|
|
|
{$block->display('product_cat:user_menu')}
|
|
|
|
{else}
|
|
|
|
{$method->exe_noauth('product_cat','user_view')}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<!-- Show the category drill-down -->
|
|
|
|
{include file='file:pre_t_CategoryDrill.tpl'}
|
2008-11-26 22:50:40 +00:00
|
|
|
{/if}
|
|
|
|
|
|
|
|
<!-- Show subcategories -->
|
2009-08-03 04:10:16 +00:00
|
|
|
{if $product_sub_cat != ''}
|
|
|
|
<br/>
|
|
|
|
{include file='file:pre_t_SubCategories.tpl'}
|
2008-11-26 22:50:40 +00:00
|
|
|
{/if}
|
|
|
|
|
|
|
|
<!-- Show each product, 3 columns per row -->
|
2009-08-03 04:10:16 +00:00
|
|
|
{if $product_arr}
|
|
|
|
{assign var=entries value=$product_arr}
|
|
|
|
{assign var=columns value=3}
|
|
|
|
{if count($entries) > 0}
|
|
|
|
<table width="100%" cellpadding="0" cellspacing="5">
|
|
|
|
{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}
|
|
|
|
<tr>
|
|
|
|
{/if}
|
|
|
|
<td width="{$width}%">
|
|
|
|
<table width=100% border="0" cellspacing="1" cellpadding="0" class="table_background">
|
|
|
|
<tr>
|
|
|
|
<td height="17">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading_cart">
|
|
|
|
<tr valign="top">
|
|
|
|
<td width="78%" >
|
|
|
|
{math equation="x-1" x=`$smarty.section.idx.rownum` assign=i}
|
|
|
|
{assign var=product value=$product_arr.$i}
|
|
|
|
<a href="{$URL}?_page=product:details&id={$product.id}">
|
|
|
|
{if $list->translate("product_translate","name,description_short,description_full","product_id", $product.id, "prod_translate") }
|
|
|
|
{$prod_translate.name}
|
|
|
|
{else}
|
|
|
|
{$product.sku}
|
|
|
|
{/if}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td width="22%" valign="middle" align="right"><b>{$list->format_currency_num($product.price_base,$smarty.const.SESS_CURRENCY)}</b></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body" bgcolor="#FFFFFF">
|
|
|
|
<tr valign="top">
|
|
|
|
{if $product.thumbnail != ''}
|
|
|
|
<td width="8%" valign="top">
|
|
|
|
<a href="{$URL}?_page=product:details&id={$product.id}"><img src="{$URL}{$smarty.const.URL_IMAGES}{$product.thumbnail}" hspace="5" border="0"/></a>
|
|
|
|
</td>
|
|
|
|
{/if}
|
|
|
|
<td width="92%" align="left">
|
|
|
|
{if $prod_translate.description_short != ''}
|
|
|
|
{$prod_translate.description_short}
|
|
|
|
{else}
|
|
|
|
{t}No Description{/t}
|
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
{if $col == $lastcol || $smarty.section.idx.index_last == true}
|
|
|
|
</tr>
|
|
|
|
{/if} {* end of row *}
|
|
|
|
{/section}
|
|
|
|
</table>
|
|
|
|
{/if}
|
2008-11-26 22:50:40 +00:00
|
|
|
|
2009-08-03 04:10:16 +00:00
|
|
|
<!-- Show product paging -->
|
|
|
|
{include file='file:post_t_Pages.tpl'}
|
2008-11-26 22:50:40 +00:00
|
|
|
{else}
|
2009-08-03 04:10:16 +00:00
|
|
|
{t}No Products in this Category{/t}
|
2008-11-26 22:50:40 +00:00
|
|
|
{/if}
|