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.

ProductStockRange Criterion

The ProductStockRange Search Criterion searches for products by their numerical stock.

Arguments

  • min - minimum stock
  • max - maximum stock

Example

PHP

1
2
3
4
5
6
7
use Ibexa\Contracts\ProductCatalog\Values\Product\ProductQuery;
use Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion;

$productQuery = new ProductQuery(
    null,
    new Criterion\ProductStockRange(10, 120)
);