Browse Source

Modification methode récupérer panier vide

develop
Fabien Normand 1 week ago
parent
commit
4883d56382
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      Repository/Order/OrderShopStore.php

+ 6
- 5
Repository/Order/OrderShopStore.php View File

@@ -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();
}
}

Loading…
Cancel
Save