tags:

views:

22

answers:

1

Hi,

How would one filter collection by attribute set name

I am trying as following, but its not working $collection->addAttributeToFilter('attribute_set_name',"Quantity Television Parts");

Thank You

A: 

This is how i end up doing.

I looked up id of the attribute-set-name in the table "eav_attribute_set" table and used following filter:

$products->addAttributeToFilter('attribute_set_id','33');

latvian