Skip to content

ProductAvailability Criterion

The ProductAvailability Search Criterion searches for products by their availability.

Arguments

  • (optional) productAvailability - bool representing whether the product is available (default true)

Example

PHP

1
2
3
4
$query = new ProductQuery(
    null,
    new \Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion\ProductAvailability(true)
);

REST API

1
2
3
4
5
<ProductQuery>
    <Filter>
        <ProductAvailabilityCriterion>false</ProductAvailabilityCriterion
    </Filter>
</ProductQuery>
1
2
3
4
5
6
7
{
    "ProductQuery": {
        "Filter": {
            "ProductAvailabilityCriterion": false
        }
    }
}