Magento how to filter product collection Archives - Sulopa Solutions
264
archive,tag,tag-magento-how-to-filter-product-collection,tag-264,,-,ajax_fade,page_not_loaded,qode-theme-ver-5.9,wpb-js-composer js-comp-ver-4.3.4,vc_responsive

Magento how to filter product collection Tag

perfect-search-20

28 Jul 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:
Read More