문제

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 Is Anchor.

Steps:

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

Re-index your catalog product index

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top