php - Magento - Check if specific category is active -
is there way of checking if 1 specific category active? have hard coded navigation , want show or hide link depending on active status of specific category. perhaps this:
// check see if sale category active... $specificcatid = '90'; if(iscategoryactive($specificcatid)){ // specific category active, } i have searched high , low, , have yet close being able solve this. help, appreciated.
i hope answer question :)
$specificcatid = '90'; $category = mage::getmodel('catalog/category')->load($specificcatid); if ($category->getisactive()) { }
Comments
Post a Comment