How Can I Filter Magento Product By Attribute

I would like to get a Magento product list and filter by Magento attributes

You can use method “addAttributeToFilter” to filter the Magento product list based on the Magento attributes.

$products = Mage::getModel('catalog/product')
->getCollection()
->addAttributeToSelect('*')
->addAttributeToFilter('attribute_code','attribute_value');
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments