Переглянути джерело

Modification methode récupérer panier vide

develop
Fabien Normand 2 тижднів тому
джерело
коміт
4883d56382
1 змінених файлів з 6 додано та 5 видалено
  1. +6
    -5
      Repository/Order/OrderShopStore.php

+ 6
- 5
Repository/Order/OrderShopStore.php Переглянути файл

@@ -724,15 +724,16 @@ class OrderShopStore extends AbstractStore
return true;
}

public function getCartAlone($query = null)
public function getOldCartWithoutProductAndUser( \DateTime $updatedAt, int $limit = 150, $query = null)
{

$query = $this->createQuery($query);

$query->filterByAlias(OrderStatus::$statusAliasAsCart);
$query->filterByUserIsNull();
$query->filterByVisitorIsNull();
$query->filterByAlias([OrderStatus::ALIAS_CART]);
$query->filterByDateEnd('updatedAt', $updatedAt);
$query->filterHasNoOrderProduct();
$query->filterHasNoUser();

return $query->limit(10000)->find();
return $query->limit($limit)->find();
}
}

Завантаження…
Відмінити
Зберегти