Magento: Get parent category, sub-category and product count
Here is a quick and complete code to load parent category from current category page and to get sub categories of parent category along with their product count. /** * If you are in any category page then load its parent category * Else load root category; generally root category has ID = 3 * … Read more