Page 1 of 1

sub-categories

Posted: Thu Nov 06, 2008 5:14 pm
by Reddirt
Can you get sub-categories to show up - even if there are no products in the sub-category?

Thanks,
Reddirt

Re: sub-categories

Posted: Fri Nov 07, 2008 6:40 am
by mazhar
Yes

Re: sub-categories

Posted: Mon Nov 10, 2008 10:33 am
by mkeith1
How?

Re: sub-categories

Posted: Mon Nov 10, 2008 12:47 pm
by mazhar
Edit the ConLib/CategoryGridPage4.ascx.cs and locate the following lines of code

Code: Select all

if (node.CatalogNodeType == CatalogNodeType.Category)
                    {
                        addNode = (CatalogDataSource.CountForCategory(node.CatalogNodeId, true) > 0);
                    }
and comment out these lines as below

Code: Select all

/*if (node.CatalogNodeType == CatalogNodeType.Category)
                    {
                        addNode = (CatalogDataSource.CountForCategory(node.CatalogNodeId, true) > 0);
                    }*/
and it will start listing empty subcategories as well

Re: sub-categories

Posted: Tue Nov 11, 2008 5:56 pm
by mkeith1
what lines of code?

Re: sub-categories

Posted: Wed Nov 12, 2008 4:06 am
by mazhar
what lines of code?
Find and comment out the following code in CategoryGridPage4.ascx.cs file

Code: Select all

if (node.CatalogNodeType == CatalogNodeType.Category)
                    {
                        addNode = (CatalogDataSource.CountForCategory(node.CatalogNodeId, true) > 0);
                    }