<?php
$currentCat = Mage::registry('current_category');
$currentCatId = $currentCat->getId();
$collection = Mage::getModel('catalog/category')->load($currentCatId);
$subcats = $collection->getChildrenCategories();
?>
<?php
<?php if(count($subcats) > 0) {
echo 'has sub';
}
?>
Categories: Magento
0 Comments