I want to combine with OR \"is null\" and \"eq\" => array()
$collection->addAttributeToFilter(\'attributename\', array(\'is\' => null));
$collection->ad
I have product attribute is_expired
with Yes and No value and i want only those product have NO value.below query work for me that get record that have neq 1 and not null.
Combine not equal to and null condition WITH OR.
$collection->addAttributeToFilter('attribue_name', array('or'=> array(
0 => array( 'neq' => '1'),
1 => array('is' => new Zend_Db_Expr('null')))
), 'left');
You can changed neq
with eq
.