an ASP.NET Open Source CMS & eCommerce platform
Search:
Last Post 1/11/2011 10:05:50 AM By lukezy. 6 replies.
1/6/2011 12:18:01 PM
RMI-Jon
Posts: 24
Joined: 3/4/2009
Location:Ohio
Category List
We are working on setting up the category list with toggling sub categories. I thought I had it all figured out with the expand depth settings, but I'm still running into issues. What we want is for all categories to be collapsed until clicked on. Can you explain how that feature works so that I can fully understand it.
1/7/2011 11:13:19 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Category List
Yes, just set Expand Depth to 1 in the category settings. And then restart app pool or go to Admin -> Support -> Store Maintenance and then clean up the cache. These settings are cached.
DotShoppingCart Staff
1/7/2011 11:27:08 AM
RMI-Jon
Posts: 24
Joined: 3/4/2009
Location:Ohio
Re: Category List
I've set all categories that have subcategories to expand depth 1, cleared the store cache and my browser cache. When I open my site all the 1st level categories are collapsed, but when I expand one of those categories all the 2nd and 3rd level categories are also expanded.
1/7/2011 11:29:34 AM
RMI-Jon
Posts: 24
Joined: 3/4/2009
Location:Ohio
Re: Category List
I take that back, it does that for all except the last of my 1st level categories
1/10/2011 1:15:51 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Category List
Do you have a direct link that I can take a look?
DotShoppingCart Staff
1/10/2011 1:33:48 PM
RMI-Jon
Posts: 24
Joined: 3/4/2009
Location:Ohio
Re: Category List
http://www.rettigmusic.com/shop/Page/Shop%20Online.aspx
 
When you click on accessories, all of the subcategories are expanded. But when you click on musis books, they are collapsed - all are set the same (expand depth =1)
1/11/2011 10:05:50 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Category List
I cannot reproduce the issue on my local box. Can you repro it on your local box? If so, try to set a breakpoint in line 89 of Web\Store\Blocks\CategoryListToggleSubCategoriesStyle.ascx.cs
 
        div.Attributes.Add("style", showInitially || (null != c.ParentId) && activeCategories.ContainsKey((int)c.ParentId) ?
            "" : "display:none;");
 
And then check why the condition is true if ShowLevels equals to 1.
 
 
DotShoppingCart Staff