Page 1 of 1

Get ALL Child Catalog Nodes

Posted: Wed Nov 10, 2010 2:47 pm
by jsmits
I'd like to get all children for a top level catalog node (really all I want are products).

Using something like (Please pardon my VB):

Code: Select all

 Dim allNodes as CatalogNodeCollection = CatalogNodeDataSource.LoadForCategory(_CategoryId) 


appears to only get the direct children. Does anyone know how to do this?

Re: Get ALL Child Catalog Nodes

Posted: Thu Nov 11, 2010 2:14 am
by plugables

Code: Select all

List<Product> products = ProductDataSource.NarrowSearch(string.Empty, _CategoryId, 0, 0, 0, 0, 0, string.Empty);

Re: Get ALL Child Catalog Nodes

Posted: Thu Nov 11, 2010 8:09 am
by jsmits
Very nice. Thanks so kindly.