Quote from: redhen at Oct 23, 2015, 03:42 PM
This solution doesn't handle two checked checkboxes correctly. It gives a result of 0 products...
I think I'll go with Bob's solution for now. Thanks anyway!
It should work (a similar one works in an actual project), maybe the comparison parameter is missing after the 'pre'.
$i = 0
foreach($group as $selected) {
$condition = ($i) ? 'OR:' : '';
$c->where(array($condition.'pre:=' => $selected));
$i++;
}
But since Bobs solution is working well, use his one.