I am using pcarousel extension in AccessShop theme for my store.
I am going to use multiple carousels for categories on homepage.
How to show category name in category carousels for home page?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI am using pcarousel extension in AccessShop theme for my store.
I am going to use multiple carousels for categories on homepage.
How to show category name in category carousels for home page?
$category_id = 5;
$_category = Mage::getModel('catalog/category')->load($category_id);
$category_name = $_category->getName();
Mage::getModel('catalog/category')->load($category_id)
-> load category by id so that all attribute of category value you can get.
$category_name = $_category->getName();
-> Here with get method you get name of category.
<?php $cruid = $this->getPcarouselId(); $crudata = Mage::getModel('pcarousel/pcarousel')->load($cruid)->getData(); $categoryid = $crudata['categories']; //Category Name $_category = Mage::getModel('catalog/category')->load($categoryid); $category_name = $_category->getName(); ?>
– Vee
Jul 29 '16 at 12:14