@@ -311,6 +311,15 @@ class OrderShopStore extends AbstractStore | |||
return $query->count(); | |||
} | |||
public function isFirstOrder(UserInterface $user): bool | |||
{ | |||
return $this->countBy([ | |||
'user' => $user, | |||
'isValid' => true, | |||
'excludeComplementaryOrderShops' => false | |||
]) == 1; | |||
} | |||
// findCartCurrent | |||
public function getOneCartCurrent( | |||
UserInterface $user = null, |