Skip to content
For AI agents: the complete documentation index is available at llms.txt; this page is also available as Markdown at index.md.

Price Currency Criterion

The Currency Search Criterion searches for prices based on the given currency.

Arguments

  • currency - a single object or an array of CurrencyInterface objects that represent the currency (Ibexa\Contracts\ProductCatalog\Values\CurrencyInterface)

Example

PHP

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
use Ibexa\Contracts\ProductCatalog\CurrencyServiceInterface;
use Ibexa\Contracts\ProductCatalog\Values\Price\PriceQuery;
use Ibexa\Contracts\ProductCatalog\Values\Price\Query\Criterion\Currency;

/** @var CurrencyServiceInterface $currencyService */
$currency = $currencyService->getCurrencyByCode('EUR');

$query = new PriceQuery(
    new Currency($currency)
);