Explorar el Código

Modification methode récupérer panier vide

develop
Fabien Normand hace 2 semanas
padre
commit
4883d56382
Se han modificado 1 ficheros con 6 adiciones y 5 borrados
  1. +6
    -5
      Repository/Order/OrderShopStore.php

+ 6
- 5
Repository/Order/OrderShopStore.php Ver fichero

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

Cargando…
Cancelar
Guardar