Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果有许多嵌套的子类别,如何在 magento 中获取某个类别的所有子类别?
谢谢
$subcats = Mage::getModel('catalog/category')->getCategories($your_category_id); foreach ($subcats as $sub) { echo $sub->getName(); }