View Single Post
  #19  
Old 05-21-2005, 09:08 PM
  AgileMolecule's Avatar 
AgileMolecule AgileMolecule is offline
 

Member
  
Join Date: May 2005
Posts: 28
 

Default

More lame coding from an XCart virgin.....

I imagine you pros can rip this to shreds but maybe it will help someone out-

Try this one out:

Remember to set your initial category numbers in the admin side according to what is in original Carrie's code- I just tweaked it a tad more here as an example.

Code:
{* $Id: categories.tpl,v 1.23 2004/06/24 09:53:29 max Exp $ *} {capture name=menu} {if $active_modules.Fancy_Categories ne ""} {include file="`$fancycategories_config.modules_path`/fancy_categories.tpl"} {else} {if $config.General.root_categories eq "Y"} {section name=cat_num loop=$categories} {if $categories[cat_num].order_by eq 5} COOL STUFF AAA {/if} {if $categories[cat_num].order_by eq 50} COOL STUFF BBB {/if} {if $categories[cat_num].order_by eq 100} COOL STUFF CCC {/if} {if $categories[cat_num].order_by eq 150} COOL STUFF DDD {/if} <FONT class="CategoriesList">{$categories[cat_num].category}</FONT> {/section} {else} {section name=cat_num loop=$subcategories} <FONT class="CategoriesList">{$subcategories[cat_num].category}</FONT> {/section} {/if} {/if} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }
__________________
\"We have only scratched the surface of Mars\"...

Jim Garvin

X-Cart version 4.0.13
Reply With Quote