Price CustomerGroup Criterion
The CustomerGroup Search Criterion searches for prices based on the customer group.
Arguments
customer_group - a single object or an array or CustomerGroupInterface objects that represent the customer group (Ibexa\Contracts\ProductCatalog\Values\CustomerGroupInterface)
Example
PHP
| use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion;
use Ibexa\Contracts\ProductCatalog\Values\Price\PriceQuery;
/** @var \Ibexa\Contracts\ProductCatalog\CustomerGroupServiceInterface $customerGroupService */
$customerGroup = $customerGroupService->getCustomerGroup(123);
$query = new PriceQuery(
new \Ibexa\Contracts\ProductCatalog\Values\Price\Query\Criterion\CustomerGroup($customerGroup)
);
|