Answer the question
In order to leave comments, you need to log in
Bitrix filtering of goods and trade offers?
Earlier I already asked the question https://qna.habr.com/q/1105110
I solved it, but another problem arose. What if I need to filter the products themselves, and not trade offers?
Now my filter is set like this
if(in_array($key, $FILTER_OFFERS_PROPERTY_CODE)){
if(!empty($value)){
$filters['filters']['OFFERS']['PROPERTY_'.$key] = explode(',', $value);
}
}else{
if(!empty($value)){
$filters['filters']['PROPERTY_'.$key] = explode(',', $value);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question