Skip to content

ProductAvailabilityTerm

The ProductAvailabilityTermAggregation aggregates search results by product availability (available/unavailable).

Arguments

  • name - name of the Aggregation object

Example

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

$query = new ProductQuery();
$query->setAggregations([
    new ProductAvailabilityTermAggregation('product_availability'),
]);