Zen Cart Logo
Forums / General Questions / Top level category id

Top level category id

Locked

Views: 800

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
24 Aug 2009, 7:19 AM
#1
rajoo_sharma avatar

rajoo_sharma

Zen Follower

Join Date:
Aug 2009
Posts:
137
Plugin Contributions:
0

Top level category id

Hello,

Is there any function that returns the top level category ID by passing its child or grand child ID?

For example category ID 1 is a root level category, it has a sub category 5 and 5 has a sub category 9. If I pass 9 or 5 to a function it should return 1 i.e. the root / top level category.

Thanks and Regards