3. Level Categories

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
learnerbm
Ensign (ENS)
Ensign (ENS)
Posts: 8
Joined: Wed Sep 02, 2009 8:13 am

3. Level Categories

Post by learnerbm » Thu Sep 10, 2009 6:39 am

Hi everybody, how can I get 3rd level Categories of a root category?

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: 3. Level Categories

Post by Logan Rhodehamel » Fri Sep 11, 2009 8:38 am

If you are comfortable doing some custom queries (http://wiki.ablecommerce.com/index.php/Custom_Queries) then you can get a list of 3rd level category IDs in a single query from the ac_CategoryParents table.

Code: Select all

SELECT CategoryId FROM ac_CategoryParents WHERE ParentId = @yourRootCategoryId AND ParentNumber = 2
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

Post Reply