get current category

piaoling  2011-07-18 10:55:21

public function getCategoryId()
    {
        if ($category = Mage::registry('current_category')) {
            return $category->getId();
        }
        return false;
    }

类别 :  magento(258)  |  浏览(3195)  |  评论(0)
发表评论(评论将通过邮件发给作者):

Email: