Home » Magento22 December 2009

Magento: Get current and parent category

This article shows how to get category information (category name, id, description, url, etc.) of the category page you are in. Along with the information of the parent category of the currently viewed category.

Get current category

Print current category array

Get current category information

Get parent category

Hope it helps. Thanks.


Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed
  • Vishalsanwar


    How to  Get current and parent category in a colllection in admin section ???


  • Oliver Montes

    More usefull

    $parentcategory = $subCategory->getParentCategory();