Skip to content

ProductTypeTerm

The ProductTypeTermAggregation aggregates search results by the product type.

Arguments

  • name - name of the Aggregation object

Example

1
2
3
4
$query = new ProductQuery();
$query->setAggregations([
    new ProductTypeTermAggregation('product_type'),
]);