| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
"Sticky" Category and Subcategory menus | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello,
I'm trying to find a mod to catalog.tpl that let's me have a persistent menu with categories & subcategories -- and when clicking on a product. The stock version which uses config.General.root_categories eq "Y", only shows 1st tier categories. My first attempt (below) shows first level, and the "current" level, but loses the subcategory detail when you click on any product within the last category. ============================================= {* $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"} {*primary*} {section name=cat_num loop=$categories} <FONT class="CategoriesList">{$categories[cat_num].category}</FONT> {section name=position loop=$location} {if $location[position].0 eq $categories[cat_num].category } {*secondary*} {if $cat ne 0} {section name=subcat_num loop=$subcategories} <FONT class="CategoriesList">{$subcategories[subcat_num].category}</FONT> {/section} {/if} {/if {/section} {/section} {/if} {/if} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu } ============================================= Any thoughts?
__________________
-: Life\'s too short for bad coffee :- |
|||||||
#2
|
|||||||
|
|||||||
![]() Tons of mods in the Custom Mods forum for stuff like this.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|