Fetching nested categories

  • Hello,

    I have used your function getVisibleCategoryTree() which gives nested arrays in tree form and which is being used using vue js for fetching categories.

    We are not using vue js so can you tell us how to fetch tree form array in javascript. I know there is function getAllChildren() but it gives one level children only.

    Please reply

    Deepak Sharma

  • Hi @dsharma

    getVisibleCategoryTree() is returning all category in nested form, so you can create a recursive function which check each category whether they have children or not & this function will be run until they don't have children & store result.


Log in to reply