1

I'm testing a code from the answer by @digitalsteez on this question:

Get Categories and Its Sub Categories

I've tested it onto two Magento instance, one has no problems but on the other I'm facing a problem with recursion:

"children" => getChildCategories($child)

and

renderCategoriesTree($level, $child);

output me an

"Invalid argument supplied for foreach()"

How can I solve this?

Thank You in advice.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.