2012-02-15 199 views

回答

0

要加載特定的類別,你可以定義ID喜歡我用4

<?php $_helper = $this->helper('catalog/output'); ?> 

$category_id = $this->getCategoryId(); 
$childrens = Mage::getModel('catalog/category')->getCollection() 
           ->addFieldToFilter('parent_id', 4) 
       ->addAttributeToSort('name', 'ASC'); 

?>

相關問題