Skip to content

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)
);