Skip to content

ProductName Criterion

The ProductName Search Criterion searches for products by theis names.

Arguments

  • productName - string representing the Product name, with * as wildcard

Example

PHP

1
2
3
4
$query = new ProductQuery(
    null,
    new \Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion\ProductName('sofa*')
);

REST API

1
2
3
4
5
<ProductQuery>
    <Filter>
        <ProductNameCriterion>sofa*</ProductNameCriterion>
    </Filter>
</ProductQuery>
1
2
3
4
5
6
7
{
    "ProductQuery": {
        "Filter": {
            "ProductNameCriterion": "sofa*"
        }
    }
}