Fetching nested categories
dsharma last edited by
I have used your function getVisibleCategoryTree() which gives nested arrays in tree form and which is being used using vue js for fetching categories.
rahul last edited by
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.