There are scenarios when you look for information using category id in Magento and there are Name, description, url, thumbnail, level and parent category that can be fetched from this code respectively. These are the following ways by which we can fetch Display category name by category id in Magento.
<?php $categoryId = 10; // Change category id according to your requirements // display name and other detail of all category $_category = Mage::getModel('catalog/category')->load($categoryId); ?>
<?php // category name with this code echo $categoryName = $_category->getName(); ?>
<?php // For category description echo $categoryDescription = $_category->getDescription(); ?>
<?php // For category url echo $categoryUrl = $_category->getUrl(); ?>
<?php //For Category Image echo $image=$Category->getImageUrl() ?>
<?php // For category thumbnail echo $categoryThumbnail = $_category->getThumbnail(); ?>
<?php // For category level echo $categoryLevel = $_category->getLevel(); ?>
<?php // For parent category echo $parentCategoryId = $_category->getParentId(); ?>
You can get all the specific information using these codes only!
App usage is growing steadily without showing any signs of slowing down. Hence, it is no surprise that mobile applications…
As the world has grown more digital, businesses have adapted themselves. An effectual adaptation includes online advertising. Offline advertising styles…
Step into a world where apps dance to the user's tune. Picture Instagram, a photo-sharing sensation that swept the globe.…
COVID-19 has led to a digitalization of lifestyle. As patients are taking their mental and physical health more seriously, healthcare…
Introduction WordPress, an immensely popular content management system (CMS), powers over 40% of the internet. What makes WordPress even more…
For moving companies trying to capture their market share amidst stiff competition, a tip or two about what they can…