View Single Post
  #1  
Old 08-03-2005, 06:58 AM
 
Funinc Funinc is offline
 

Senior Member
  
Join Date: Sep 2002
Location: CA
Posts: 108
 

Default Need Help getting Subcategory edit to work

This is on Version 4.0.12

I am trying to change/update my subcategories so that it has a img and then text and then the list of subcategories below it. I am close

http://www.themenslab.com/lab/home.php?cat=2

I have somehow lost the products & featured products.
Also I can not seem to get the sub cat images to show.

Here is my subcategory.tpl

Code:
{* $Id: subcategories.tpl,v 1.29 2002/11/26 14:55:13 alfiya 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" } <table width="100%" border="0" cellspacing="2" cellpadding="2" bgcolor="#FFFFFF"> <tr> <td>{if ($navigation_page eq "")||($navigation_page eq "1")}[img]{if $current_category.icon_url}{$current_category.icon_url}{else}{$xcart_web_dir}/icon.php?categoryid={$cat}{/if}[/img]</td> <td><blockquote> <font size="2" face="Verdana, Arial, Helvetica, sans-serif">{$current_category.description|regex_replace:"/[\n]/":" "} {/if} </font></p> </blockquote></td> </tr> </table> {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> { $categories[cat_num].description|escape } </td> { if %cat_num.last% } </tr></table> {/if} {/section} {if $tmp and $products ne "" } <br clear=_all>{*<hr size=1 noshade>*} {/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" }

If anyone could help me figure it out I would appreciate it.

Also I am looking to add a word image at top somehow showing which category it is.... need help on how the system would know which img to place based on category.

Thanks...hope this makes sense.

TIMM
Reply With Quote