B0Bka / box

0 stars 0 forks source link

Фильтр по даті #1

Open B0Bka opened 7 years ago

B0Bka commented 7 years ago
 $objDateTime = DateTime::createFromTimestamp(time() - 90 * 86400);
 $arResult = \Bitrix\Sale\Order::getList(array('filter' => array('>DATE_INSERT' => $objDateTime, 'PAYED' => 'N', 'CANCELED' => 'N', '!STATUS_ID' => 'F'))) -> fetchAll();
 foreach($arResult as $order)
 {

    echo '<pre>'; print_r($order['ID']); echo '</pre>';
 }