Quote:
Originally Posted by JWait
Well, if it only needs to be in 2, then its already possible. X-cart has a main category and an additional category for every product. It is a simple matter of listing all of your "Products" and then creating "Material" categories and putting them as the "additional" category for each product.
Since it appears you are not using the manufacturers menu you could also "cheat" and use "manufacturers" as a pseudo-category, having "manufacturers" named "gold", "silver" etc. and renaming "manufacturers" to "Materials".
Anyway, just some ideas to get you thinking outside the box.
|
1. Change the code of file "skin1/customer/categories.tpl" by the this code:
PHP Code:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 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}
{if $c.order_by lt 100}
<font class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems">{$c.category}</a></font><br />
{/if}
{/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="First section" menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}
{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}
{if $c.order_by gt 99}
<font class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems">{$c.category}</a></font><br />
{/if}
{/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="Second section" menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}
2. To add in the first section, use category with a value of "orderby" - less than 100. The second - more.