| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How do i only show certain categories in menus | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi All,
I have been searching the forums for a solution to this and I have tried a few ideas to implement what I am trying to achieve but I cant get it to work. I don▓t want the root categories to show in the left menu or the top menu only the sub cats. Basically we have our categories set out as below Top menu (root) cat1 cat2 cat3 cat4 Left menu (root) cat1 cat2 cat3 cat4 I thought i could use the parent id in the categories.tpl to get the sub cats to show : {if $allcategories[subcat].parentid eq 340} but this doesn▓t work. Any help would be greatly appreciated. Many Thanks Richie
__________________
Version 4.1.9 X-Cart Sites:- www.artyfect.com www.naval-military-press.com www.bookguild.co.uk www.humangivens.com |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Quote:
Hi, see attached file. Hope it will helps u. NOTE: it works ONLY with one-leveled subcategories (if need more I will be here ![]()
__________________
Regards, SpinyMan X-Cart Templates Store - http://www.x-cart-customization.com/shop/ X-Cart Customization Services - http://www.x-cart-customization.com/ |
|||||||||
#3
|
|||||||
|
|||||||
![]() Hi SpinyMan,
Many thanks i will give it a try ![]() Richie
__________________
Version 4.1.9 X-Cart Sites:- www.artyfect.com www.naval-military-press.com www.bookguild.co.uk www.humangivens.com |
|||||||
#4
|
|||||||
|
|||||||
![]() SpinyMan,
Thank you so much! You are a life saver. Based on that, I was FINALLY able to create the "always display all categories and all their subcategories" layout I was so searching for! Code:
My categories.tpl, based on yours, is attached for others.
__________________
Version 4.1.6 |
|||||||
|
|||
X-Cart forums © 2001-2020
|