Firstly, the site this applies to is
www.xtrememotions.ca. Now, my question is for my main navigation menu, what I'm attempting to do is sort the subcategories of every main category by the position used in X-cart. For example:
Wheel Sports
- scooters
- bicycles
- motorcycles
Water Sports
- water ski's
- surfboards
- tubes
The idea would be that Wheel Sports was pos1, and Water sports was pos2. Within each category respectively, scooters was pos1, bicycles pos2, motorcycles pos3, and waterski's pos1, surfboards pos2, tubes pos3.
What I have so far lists the subcategories beneath every main category, but does not list them by position but rather alphabetically. Anyone have any ideas?
Thanks in advance to anyone who has taken the time to read this or respond!
Here's what I have so far:
{* $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="modules/Fancy_Categories/categories.tpl"}
{assign var="fc_cellpadding" value="0"}
{else}
{if $config.General.root_categories eq "Y"}
{foreach from=$categories item=c}
<a href="home.php?cat={$c.categoryid}"><b><font color="#336600" size="3" face="Verdana, Arial, Helvetica, sans-serif">{$c.category}</font></b></a><br />
{foreach from=$allcategories item=cat}
{if $cat.parentid eq $c.categoryid}<font class="CategoriesList"><a href="home.php?cat={$cat.categoryid}" class="VertMenuItems">{$cat.category}</a></font><br />{/if}
{/foreach}
<br />
{/foreach}
{else}
{foreach from=$subcategories item=c key=catid}
<font class="CategoriesList"><a href="home.php?cat={$catid}" class="VertMenuItems">{$c.category}</a></font><br />
{/foreach}
{/if}
{/if}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }