Blog - Sulopa Solutions
14891
paged,page,page-id-14891,page-template,page-template-blog-masonry,page-template-blog-masonry-php,paged-48,page-paged-48,ajax_fade,page_not_loaded,,qode-theme-ver-5.9,wpb-js-composer js-comp-ver-4.3.4,vc_responsive

Blog

perfect-search-20
Magento how to filter product collection using 2 or more category filters?
Magento how to filter product collection using 2 or more category filters Suppose, you have a product collection and you want to filter it by category. Suppose, you want to filter it by more than one category. You can use addCategoryFilter if you have only one category. But, what if you want to filter by more than one category? Category ids are stored for product in a comma separated way. So, to filter product collection by more than one category, you have to use: