Open B0Bka opened 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>'; }