I am trying to create multiple main category menus and have them function with either pos values or making new entry fields within the admin category_modify.tpl
Here is a sample of what i am trying to achieve:
http://www.starvingpilotshop.com/shop/home.php
I have been looking through forum posts... and these refer to what I am trying to do.... but i still can't seem to make 'em work
http://forum.x-cart.com/viewtopic.php?t=27016&start=0&postdays=0&postorder =asc&highlight=multiple%20category%20menus
http://forum.x-cart.com/viewtopic.php?t=27033&start=0&postdays=0&postorder =asc&highlight=multiple%20category%20menus
So far, I have created tpl files for the new categories (categories2.tpl and categories3.tpl). However, I just cut and pasted the code from the original categories.tpl, and I don't know how to modify it to make it fuction within customer home.tpl
right now i just get an ugly "parse error" message!
pos values within the customer mangement section have been set.... are tehre advantages/disadvatages to this meathod as opposed to creating new output fields within the admin category_modify.tpl file?
anyways..... here is my code for categories2.tpl
I need some pointers on how to modify it so it works when i include it in the home.tpl code
Code:
{* $Id: categories2.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 < 500}
<FONT class="CategoriesList">
{$categories[cat_num].category}</FONT>
{/if}
{/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 }
thanks a lot,
michelle
x-cart vs 4.0.19[/code]