- Documentation >
- Search >
- Product Search Criteria >
- ProductCode
ProductCode Criterion
The ProductCode
Search Criterion searches for products by their codes.
Arguments
productCode
- array of strings representing the Product codes(s)
Example
PHP
| $query = new ProductQuery(
null,
new \Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion\ProductCode(['ergo_desk', 'alter_desk'])
);
|
REST API
| <ProductQuery>
<Filter>
<ProductCodeCriterion>ski</ProductCodeCriterion>
<ProductCodeCriterion>snowboard</ProductCodeCriterion>
</Filter>
</ProductQuery>
|