get current category name using Magento
In this post we will show you get current category name using Magento, hear for get current category name using Magento we will give you demo and example for implement.
How to get current category name using Magento
we will show you How to current category name using Magento. For current category name using Magento you need this code.
<?php $get_current_category = Mage::registry('current_category')->getName(); echo $get_current_category; ?>
How to Get Parent Category Name using Magento
we will show you How to Get Parent Category Name using Magento. For Get Parent Category Name using Magento you need this code.
<?php $get_parent_name = $this->getCurrentCategory()->getParentCategory()->getName(); echo $get_parent_name; ?>
Hope this code and post will helped you for implement current category name using Magento. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve onlincode. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs onlincode.org