Hi funkydunk
thanks for the quick response, i have tried implementing your code, and i came up with an error of
Quote:
Parse error: parse error in /home/chava_1/savatrader-www/products/templates_c/%%103/%%1035601712/subcategories.tpl.php on line 87
|
this is what my full source code looks like with your additions
Quote:
{* $Id: subcategories.tpl,v 1.21 2002/09/10 12:36:34 zorg Exp $ *}
{ include file="location.tpl" }
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"}
{include file="modules/Bestsellers/bestsellers.tpl"}
{/if}
{ include file="customer/main/navigation.tpl" }
{if ($page eq "")||($page eq "1")}{$current_category.description|regex_replace: "/[\n]/":"
"}
{/if}
{capture name=dialog}
{if $subcategories}
[img]../icon.php?categoryid={$cat}[/img]
{/if}
{if $current_category.categoryid eq 130}
{ include file="customer/main/shops.tpl" }
{else}
{section name=cat_num loop=$subcategories}
{ if %cat_num.first% }
<table width="100%" border=0 cellspacing=5>
<tr>
{/if}
{if smarty.section.cat_num.index is odd}
</tr>
<tr>
{/if}
<td align=left nowrap width=20%>
<font class="TableCenterSubCategoryListTitleBlue">{ $subcategories[cat_num].category|escape }</font></td><td align=left width="80%">
<font class="TableCenterSubCategoryListQuantityBlue">({ $subcategories[cat_num].product_count })</font></td>
{ if %cat_num.last% }
</tr>
</table>
{/if}
{/section}
{if $subcategories ne "" and $products ne ""}
<hr size=1 noshade>
{/if}
{include file="customer/main/products.tpl" products=$products}
{if $products eq "" and $subcategories eq ""}
{$lng.txt_no_products_in_cat}
{/if}
{/capture}
{include file="dialog.tpl" title=$current_category.category|regex_replace:"/.*\//":"" content=$smarty.capture.dialog extra="width=100%"}
{if $products eq ""}
{if $f_products ne ""}
{include file="customer/main/featured.tpl"}
{/if}
{/if}
|
