get current category
piaoling 2011-07-18 10:55:21
public function getCategoryId()
{
if ($category = Mage::registry('current_category')) {
return $category->getId();
}
return false;
}
发表评论(评论将通过邮件发给作者):