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.

Magento

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed
  • Vishalsanwar

    HI,

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

    Thanx
    Vishal
     

  • Oliver Montes

    More usefull

    $parentcategory = $subCategory->getParentCategory();