Is it in a folder called customer_favourites:
Quote:
{assign var="is_favour" value="N"}
{section name=cnum loop=$category_tree}
{if $category_tree[cnum].cust_favour eq "Y"}
{assign var="is_favour" value="Y"}
{/if}
{/section}
{if $is_favour eq "Y"}
{capture name=dialog}
{assign var="cat_per_row" value="2"}
<table border=0 cellpadding=10 cellspacing=10 width=100%>
{assign var="counter" value="0"}
{section name=cnum loop=$category_tree}
{if $category_tree[cnum].cust_favour eq "Y"}
{if $counter is div by $cat_per_row}
<tr>
{/if}
<td width="50%" valign="top" align="center">
{$category_tree[cnum].category}
<div align="left">
<table border=0 cellpadding=0 cellspacing=8><tr>
<td width=100 align=right>
[img]{if $category_tree[cnum].icon_url}{$category_tree[cnum].icon_url}{else}{$xcart_web_dir}/icon.php?categoryid={$category_tree[cnum].categoryid}{/if}[/img]
</td>
<td valign=middle>
{section name=subcat_num loop=$category_tree[cnum].subcategories}
<a href="home.php?cat={ $category_tree[cnum].subcategories[subcat_num].categoryid }">
{ $category_tree[cnum].subcategories[subcat_num].category_name|escape }</font></a>
{/section}
</td>
</tr></table>
</div>
{%cnum.last%}
</td>
{capture name=cat_index}
{math equation="index+x+1" index=$counter x=$cat_per_row}
{/capture}
{if $smarty.capture.cat_index is div by $cat_per_row }
</tr>
{/if}
{math equation="x+1" x=$counter assign="counter"}
{/if}
{/section}
{capture name=cat_index}
{math equation="index+x" index=$counter x=$cat_per_row}
{/capture}
{if $smarty.capture.cat_index is div by $cat_per_row }
{else}
<td width="50%"></td></tr>
{/if}
</table>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_cust_favourites content=$smarty.capture.dialog extra="width=100%"}
{/if}
|
It allows me to choose which categories (departments) to display on the customer homepage and in what order, with what subcategories I like. I have loked through the code but can still not find the answer - any thoughts?
Paul