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!
Every generation has its own version of “the perfect toy.” For some of us, it was a wooden spinning top.…
In a world dominated by screens and fast-paced routines, the need for intentional, meaningful play has never been more important.…
In a world filled with digital distractions, there’s something inherently heartwarming and refreshing about walking into a toy store in…
“Mom, why didn’t you have unicorn pouches when you were little?” My daughter asked this while clutching her new sparkly…
In the bustling heart of India’s capital, amid skyscrapers, bazaars, and malls, there lies a world that lights up not…
Toys are more than just playthings; they shape childhood memories, enhance creativity, and support early learning. Whether it’s a Silicone…