Get ALL Child Catalog Nodes

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
jsmits
Lieutenant (LT)
Lieutenant (LT)
Posts: 66
Joined: Wed Sep 30, 2009 11:57 am

Get ALL Child Catalog Nodes

Post by jsmits » Wed Nov 10, 2010 2:47 pm

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?

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Get ALL Child Catalog Nodes

Post by plugables » Thu Nov 11, 2010 2:14 am

Code: Select all

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

User avatar
jsmits
Lieutenant (LT)
Lieutenant (LT)
Posts: 66
Joined: Wed Sep 30, 2009 11:57 am

Re: Get ALL Child Catalog Nodes

Post by jsmits » Thu Nov 11, 2010 8:09 am

Very nice. Thanks so kindly.

Post Reply