Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Get subcategories to show on left column

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-29-2011, 10:42 AM
 
gatordp gatordp is offline
 

Advanced Member
  
Join Date: Aug 2009
Posts: 72
 

Default 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)} {include file="customer/featured_categories.tpl" } {/if}

What am I missing?

PM me if you'd like to see the URL so you can see how it's acting.
__________________
X-Cart Gold 4.5.4
Reply With Quote
  #2  
Old 11-15-2011, 03:07 AM
 
gatordp gatordp is offline
 

Advanced Member
  
Join Date: Aug 2009
Posts: 72
 

Default 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.
__________________
X-Cart Gold 4.5.4
Reply With Quote
  #3  
Old 11-15-2011, 06:17 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:50 PM.

   

 
X-Cart forums © 2001-2020