Kriuchko
1/9/2019 - 10:31 AM

Parent category

Magento 1 parent category

<?php $currentCategory = Mage::registry('current_category'); ?>
<?php

        if($currentCategory->getLevel() == 2){
            $currentCategory = $currentCategory;
        } else {
            $parentCategory = Mage::getModel('catalog/category')->load($currentCategory->getParentId());

        }
?>
<div class="block block-account block-category">
<div class="block-title"><strong><span><?php if(!empty($parentCategory)){echo $parentCategory->getName();}else{ echo $currentCategory->getName();}?></span></strong></div>