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!
When it comes to children, there’s one universal truth: the right toy can spark imagination, build skills, and make memories…
In today’s digital age, where screens and gadgets dominate our children’s lives, there’s something heartwarming about a well-loved plush toy…
In a world dominated by screens and fast-paced routines, it’s easy to forget the simple magic of a toy in…
In the heart of Delhi’s vibrant streets lies a world where imagination meets innovation — the magical universe of toys.…
When was the last time a toy truly amazed you—not just as a product, but as a thoughtful tool for…
In the digital age, the way we experience childhood has changed, but the essence remains the same—imagination, exploration, and joy.…