Can you get sub-categories to show up - even if there are no products in the sub-category?
Thanks,
Reddirt
sub-categories
Re: sub-categories
Edit the ConLib/CategoryGridPage4.ascx.cs and locate the following lines of code
and comment out these lines as below
and it will start listing empty subcategories as well
Code: Select all
if (node.CatalogNodeType == CatalogNodeType.Category)
{
addNode = (CatalogDataSource.CountForCategory(node.CatalogNodeId, true) > 0);
}
Code: Select all
/*if (node.CatalogNodeType == CatalogNodeType.Category)
{
addNode = (CatalogDataSource.CountForCategory(node.CatalogNodeId, true) > 0);
}*/
Last edited by mazhar on Wed Nov 12, 2008 4:02 am, edited 1 time in total.
Re: sub-categories
Find and comment out the following code in CategoryGridPage4.ascx.cs filewhat lines of code?
Code: Select all
if (node.CatalogNodeType == CatalogNodeType.Category)
{
addNode = (CatalogDataSource.CountForCategory(node.CatalogNodeId, true) > 0);
}