1

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?

  • Assign the all product from backend to the root category it will automatically display at front side when you open this root category – Keyul Shah Dec 26 '13 at 7:03
1

In admin panel set yes the value for Is Anchor.

Steps:

Go to Catalog > Manage Categories and set Is Anchor to Yes.

Re-index your catalog product index

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.