I'm having problems using addAttributeToFilter on Magento Multiple select attributes.
I have a multiple choice attribute for cars, so the content is "Audi", "BMW" and so on. In my example, I have a bus product that I selected 5 for multiple selection.
I want to display products that have BMW as one of their selected fields.
I tried the following, all of which do not work:
$products->addAttributeToFilter('make', array('like' => '%BMW%'));
$products->addFieldToFilter('make', array('like' => '%BMW%'));
$products->addAttributeToFilter('make', array('like' => '%38%'));
Nothing is working.
source
share