Thursday, August 09, 2012

addCategoryFilter not working in Magento. How to filter categories in Magento.

I'd tried a lot of things that I'd found around the web... but the only one that worked for me was this one:

$category = Mage::getModel('catalog/product')->setId($catid);

$products = Mage::getModel('catalog/product')

Thanks to the wonderful people at Stackoverflow and this thread:

1 comment:

  1. Awesome awesome! Thnks Man! I'm stuck with this issue for 3 hrs.