Magento: 通过category name获取category信息

来源:互联网 发布:最新聊天软件排行 编辑:程序博客网 时间:2024/06/05 01:53
$cat = Mage::getResourceModel('catalog/category_collection')->addFieldToFilter('name', 'Category_Name_Here');print_r($cat->getData());
To get the category id from $cat object, simply use:
$cat->getFirstItem()->getEntityId();



原创粉丝点击