![]() |
Get subcategories to show on left column
I made a featured categories section on my left sidebar -- just above where i list all my main categories. This featured section shows my subcategories.
When I am in a main category, the featured section will show up. However, when I click into one of the subcategories then the featured section will disappear. I would like this featured section to show up, even if you click into a subcategory. So if I am in main category "Lion Clothing" -- I will see "Lions T-shirts" and "Lions Sweatshirts" subcategories on the left siderail. But right now, if I click into "Lions T-shirts" ... then the featured category section will be gone. I would like to still see "Lions T-Shirts" and "Lions Sweatshirts" listed on the left side. I have tried putting this in my home.tpl Code:
{if $subcategories && ($active_modules.Fancy_Categories || $config.General.root_categories eq "Y" || $subcategories)} What am I missing? PM me if you'd like to see the URL so you can see how it's acting. |
Re: Get subcategories to show on left column
I just wanted to bump this as I am still trying to come up with a way to have my subcategories show up on the left sidebar while you are viewing a subcategory.
PM me if you'd like to see the URL so you can see how it's acting. |
Re: Get subcategories to show on left column
It disappears because $subcategories array is empty when you go to a subcategory. You are using default XC and this is how it behaves. If you want last subcategories list to stay you have to custom code it so array is populated even if you are on products list or product details page.
|
All times are GMT -8. The time now is 02:25 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.