<?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

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *