I am getting product collection without using addAttributeToFilter('status',array('eq'=>,1))
,but still my collection has only active products.
Why it returns active products default?Is there any values set for this in admin?
My Full code is,
$products = Mage::getModel('catalog/product')->getCollection()
->addAttributeToSelect('*')->addCategoryFilter($category)
->addAttributeToFilter('entity_id',array('neq'=>$current->getId()))
->addAttributeToFilter('name',array('eq'=>$current->getName()))
->addAttributeToSort('price', 'asc')
->addFieldToFilter($attr_brand['code'], $attr_brand['val']);