])->andWhere([
'between',
'creation_date',
- date('Y-m-d 00:00:00', strtotime('-3 weeks', time())),
+ date('Y-m-d 00:00:00', strtotime('-3 days', time())),
date('Y-m-d 23:59:59', time())
])
->all();
$itemsFiltered = [];
$summ = 0;
foreach ($items as $item) {
- $product1c = Products1c::find()->where(['article' => $item['offer_id']])->one();
+ $product1c = Products1c::find()->where(['articule' => $item['offer_id']])->one();
$itemsFiltered []= [
'product_id' => $product1c->id ?? '',
'color' => '',