|
|
|
|
|
|
|
|
return $query; |
|
|
return $query; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// findGiftVouchersByOrder |
|
|
|
|
|
public function getGiftVouchersByOrder(OrderShopInterface $orderShop): array |
|
|
|
|
|
{ |
|
|
|
|
|
$query = $this->createQuery(); |
|
|
|
|
|
$query |
|
|
|
|
|
->filterByOrderShop($orderShop) |
|
|
|
|
|
->filterIsGiftVoucherActive(); |
|
|
|
|
|
|
|
|
|
|
|
return $query->find(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// findOrderProductsInCartsByProduct |
|
|
// findOrderProductsInCartsByProduct |
|
|
public function getInCartsByProduct(ProductInterface $product, $query = null): array |
|
|
public function getInCartsByProduct(ProductInterface $product, $query = null): array |
|
|
{ |
|
|
{ |