View Single Post
  #113  
Old 02-11-2006, 06:16 AM
 
almenzies almenzies is offline
 

Advanced Member
  
Join Date: Nov 2005
Posts: 66
 

Default Subcategory description under link

Hi,

I'm trying to add the subcategory descriptions under the subcategory link on the category page, see:

http://www.bubblebathrooms.co.uk/Whirlpool-baths-p-1-c-243.html

Ideally I want the definition of a single ended bath to be next to the image and under the link "single ended baths" but I just can't seem to get the right code - would be most grateful for some guidance.

My current subcategories code is:
(I added the line " $subcategories[cat_num].description|escape}" to no avail:

{* $Id: subcategories.tpl,v 1.43.2.5 2004/12/01 15:15:49 mclap Exp $ *}
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"}

{include file="modules/Bestsellers/bestsellers.tpl"}
{/if}
{if $active_modules.Special_Offers and $category_offers}



{include file="modules/Special_Offers/customer/category_offers_short_list.tpl}
{/if}
{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}
{if $subcategories}
<TABLE width="100%" border="0" cellspacing="5">
{foreach from=$subcategories item=subcat}
<TR>
{* SAFETYNET DSEFU MOD *}
{if $enable_seo_links == "Y"}
<TD align="left" nowrap width="40%">[img]{if $subcat.icon_url}{$subcat.icon_url}{else}{$xcart_w eb_dir}/icon.php?categoryid={$subcat.categoryid}{/if}[/img]</TD>
<TD width="95%" align="left" valign="middle" nowrap><FONT class="ItemsList">{ $subcat.category|escape }</FONT>

{ $subcategories[cat_num].description|escape} </TD>
{else}
<TD align="left" nowrap width="40%">[img]{if $subcat.icon_url}{$subcat.icon_url}{else}{$xcart_w eb_dir}/icon.php?categoryid={$subcat.categoryid}{/if}[/img]</TD>
<TD width="95%" align="left" valign="middle" nowrap><FONT class="ItemsList">{ $subcat.category|escape }</FONT>
</TD>
{/if}
{* END SAFETYNET DSEFU MOD *}
<TD width="40%" align="right" nowrap><FONT class="Text">
{if $config.Appearance.count_products eq "Y"}
{if $subcat.product_count}{ $subcat.product_count }
{$lng.lbl_products} {elseif $subcat.subcategory_count}{ $subcat.subcategory_count } {$lng.lbl_categories|lower} {/if}
{/if}</FONT></TD>
</TR>
{/foreach}
</TABLE>


{/if}
{if $tmp and $products ne "" }
<BR clear="left">
<HR size="1" noshade>
{/if}
{if $products}
{if $sort_fields}
<DIV align="right">{include file="main/search_sort_by.tpl" sort_fields=$sort_fields selected=$search_prefilled.sort_field direction=$search_prefilled.sort_direction url="home.php?cat=`$cat`&"}</DIV>
{/if}
{if $total_pages gt 2}


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


{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 content=$smarty.capture.dialog extra="width=100%"}
{if $products eq ""}
{if $f_products ne ""}



{include file="customer/main/featured.tpl"}
{/if}
{/if}
{ include file="customer/main/navigation.tpl" }
Reply With Quote