RIP
Tutorial
Tags
Topics
Examples
eBooks
Tutorial by Examples
Get the parent category
$_cat = new Mage_Catalog_Block_Navigation(); $curent_cat = $_cat->getCurrentCategory(); $curent_cat_id = $curent_cat->getId(); $parentId=Mage::getModel('catalog/category')->load($curent_cat_id)->getParentId(); $parent = Mage::getModel('catalog/category')->load($parentId); $catego...
Get the current category
$categoryName = Mage::registry('current_category')->getName(); foreach ($categoryName as $_category): $categoryName = $_category->getName(); endforeach;
Page 1 of 1
1
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website