I want to get all product IDs of a root category and subcategory programmatically, when I click the root category. How can I get product IDs of both categories together under root category?
In admin panel set
yes the value for
Go to Catalog > Manage Categories and set
Re-index your catalog product index