Magento: Filter based on simple product level attribute.
I have created a custom attribute namly 'color_range' from Magento admin. This attribute is in simple product level (so, not available in configurables.) and also set as filterable. Here, I am facing an issue with product filtering based on this attribute. Configurable products were not returned in the collection even though there are associated products (simple) with provided value. Is this expected behaviour ? Can anybody please help? My code follows:
$collection->addAttributeToFilter('color_range', array('eq' => 1788 ));
Thanks! Iqbal.