Answer the question
In order to leave comments, you need to log in
How to filter orders by properties in Bitrix?
Good day.
There is a task to filter all orders of the store by one property, the value is "date" (in no way related to the date of placing the order or updating it),
i.e. I ajax'om should receive all orders which contain the given property with the date transferred by me.
What I've done:
$arFilter = Array("PROPERTY_VAL_BY_CODE_NEW_DATE_DEP" => "26.05.2017");
$db_sales = CSaleOrder::GetList(array("DATE_INSERT" => "ASC"), $arFilter);
while ($ar_sales = $db_sales->Fetch())
{
print_r($ar_sales);
}
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