Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Nauman 98 posts 118 karma points
    Sep 27, 2010 @ 15:11
    Nauman
    0

    Get all Categories recursively

    Hi

    How Can I get all the categories within a catalog recursilvely? i.e. get all the categories tree within a catalog?

    Nauman

  • Nauman 98 posts 118 karma points
    Sep 28, 2010 @ 08:46
    Nauman
    0

    After some research, I managed to do it myself not recursive though, but it brings all the categories in a catalog.

    <xsl:variable name="categories" select="CommerceLibrary:GetRootCategories('Catalog Name')"/>
      <xsl:for-each select="$categories/categories/category">
    <xsl:value-of select="@name"/>  
      </xsl:for-each>
Please Sign in or register to post replies

Write your reply to:

Draft