![]() |
Display Subcategories of Parent, While in Subcategory
Hi All,
I've made a dropdown menu at the top of my category pages in a 4.4.3 store that lists the subcategories in that category, like so: HTML Code:
I would like this dropdown menu to be visible and function even after you go into a subcategory. Currently, it shows on the parent category page correctly, but then when you go into a subcategory the selections are no longer in the menu. http://future.thefutureforward.com/~aso/Snow/ I think I need an if statement in there that grabs the parent's subcats when in a subcat, but I'm not sure how to do it. Any help is much appreciated! |
Re: Display Subcategories of Parent, While in Subcategory
SOLVED thanks to this post - http://forum.x-cart.com/showthread.php?p=320214#post320214
Here's how I did it: In subcategories.tpl: HTML Code:
{include file="customer/main/subcategories_dropdown.tpl"} In subcategories_dropdown.tpl: HTML Code:
Works perfectly! |
Re: Display Subcategories of Parent, While in Subcategory
shouldn't you put the PHP in php file?
|
Re: Display Subcategories of Parent, While in Subcategory
Probably, but with a deadline looming, this worked so I ran with it!
|
Re: Display Subcategories of Parent, While in Subcategory
Nice solution!
{php} is deprecated so you'll definitely want to clean this up when you have a chance. Maybe post your new solution then. :) |
All times are GMT -8. The time now is 06:33 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.