Search Filter
SearchFilterRule
Returns filtered results of replace product search
Notification level: Not applicable
Key | Value |
---|---|
ID | SearchFilterRule |
Translation key | Not applicable |
Overload Parameter
The overload is formatted as a JSON object, in which each property gives us the parameter to compute the filtered product search results.
Key name | Type | Default value | Description |
---|---|---|---|
closedTags | array | – | Mandatory Defines the list of closed tag IDs of products for which the rule needs to be applied. |
filterParameters | array | – | Mandatory. Defines the names of filter parameters on the basis of which product search results are filtered. |
Note:
Overloads will be same as Sample json provided below.
Sample
[
{
"closedTags": [ 570, ... ], // list of closed tag IDs
"filterParameters": [ "cornerCabinetSide", ... ] // list of parameter names
},
]
This rule is used to filter the replace product search results based on the filter parametes and closed tag IDs provided in the overloads.
Trigger Conditions
This rule is triggered for products having the filter parameter.
For example, when the user replace the product with the filter parameter "cornerCabinetSide" having value "left" only those products are displayed in replace product search, which have the exact same value(left) for this parameter, as the product being replaced as shown :