There is an array of category ids i.e. array(18,19,25);
I want to get those products which has all these categories from above array. Product should present in 18,19 and 25.
Array values can be anything i.e. category ids.
category-productsmagento-1.9product-collection
There is an array of category ids i.e. array(18,19,25);
I want to get those products which has all these categories from above array. Product should present in 18,19 and 25.
Array values can be anything i.e. category ids.
Best Answer
Let's Assume you have categoryIds Array
First You have to do category join
Now add simple
IN
condition ofcollection