Sunday , November 19 2017
Home >> Champ (page 20)

Champ

Filter product collection by multiple categories in Magento

During the past week I’ve dealed with a very weird and stressing thing with my colleagues: filtering a product collection by multiple categories in Magento. Filter by only 1 category Magento offers a type of filter that can be used directly from the collection: $_category = Mage::getModel(‘catalog/category’)->load($category_id);   $collection->addCategoryFilter($_category); Filter by 2 ...

Read More »
Heap | Mobile and Web Analytics