View Single Post
  #11  
Old 10-13-2004, 12:01 PM
 
adamsteinhoff adamsteinhoff is offline
 

Member
  
Join Date: Sep 2004
Posts: 19
 

Default

I am trying to get this mod working for my site (www.eArtPark.com). For some reason, neither the description or product counts are displaying. What am I doing wrong here?

Quote:
{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 ($navigation_page eq "")||($navigation_page eq "1")}{$current_category.description|regex_replace: "/[\n]/":"
"}

{/if}


{capture name=dialog}
{assign var="tmp" value="0"}

{section name=cat_num loop=$subcategories}
{if $subcategories[cat_num].category}{assign var="tmp" value="1"}{/if}
{/section}

{section name=cat_num loop=$subcategories}

{ if %cat_num.first% }
<table border=0 cellspacing=5 width=100%>
{/if}

{if $smarty.section.cat_num.index is div by 2}
</tr><tr valign="top">
{/if}

<td valign="top" width="70" align="center">
<a class="alt" href="home.php?cat={ $subcategories[cat_num].categoryid }">
[img]../icon.php?categoryid={$subcategories[cat_num].categoryid}[/img]
</a>
</td>
<td align=left><a class="alt" href="home.php?cat={ $subcategories[cat_num].categoryid }">
{$subcategories[cat_num].category|escape}</a>

{ $subcategories[cat_num].description|escape }
{if $config.Appearance.count_products eq "Y"}


<font class=Text>
{if $subcategories[cat_num].product_count}
{ $subcategories[cat_num].product_count } {$lng.lbl_products}
{elseif $subcategories[cat_num].subcategory_count}
{ $subcategories[cat_num].subcategory_count } {$lng.lbl_categories|lower}
{/if}
</font>
{/if}


</td>

{ if %cat_num.last% }
</tr></table>
{/if}
{/section}
{* ==================== Sub categories mod end *}
{if $tmp and $products ne "" }
<br clear=_all>{*<hr size=1 noshade>*}
{/if}

{if $products ne "" and $tmp eq "0"}



{include file="customer/main/products.tpl" products=$products}
{/if}

{if $products eq "" and $tmp eq "0"}
{$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 "" and $f_products ne ""}






{include file="customer/main/featured.tpl"}
{/if}
{ include file="customer/main/navigation.tpl" }
__________________
X-Cart 4.0.3
PHP 4.3.8
OS Linux
Perl 5.006001
XML 1.95.6
Reply With Quote