Remove to All
RemoveAllRule
Check if the selected parameter is eligible for the Remove All option and removes all the parameters mapped with the parameter we are going to remove.
Notification level: Not applicable
Key | Value |
---|---|
ID | RemoveAllRule |
Translation key | Not applicable |
Overload Parameter
The overload is formatted as a JSON object. The overloads of this rule allow retailers to define a precise mapping between a parameter being deleted and the parameters need to be removed with them.
Key name | Type | Default value | Description |
---|---|---|---|
Can be any parameter | object | – | Optional Defines the list of parameters mapped in key-value pair where the key is the selected product id and the value contains an array of suitable items for which the rule needs to be applied. |
Note:
Overloads will be the same as the Sample json provided below.
Sample
{
"plinthOption": [{"publicationID":"worktopOption", "publicationType":"Worktop"}, {"publicationID":"wallPanelOption", "publicationType":"WallPanel"}],
"worktopOption": [{"publicationID":"plinthOption", "publicationType":"Plinths"}, {"publicationID":"wallPanelOption", "publicationType":"WallPanel"}],
"wallPanelOption": [{"publicationID":"worktopOption", "publicationType":"Worktop"}, {"publicationID":"plinthOption", "publicationType":"Plinths"}]
}
This rule offers the retailers to define linked parameters so that removing one component (e.g., param1) also removes its associated components (e.g., param2, param3).
Trigger Conditions
This rule is triggered for parameters available in the RemoveAllRule
overloads or If the selected parameter is available in more than one furniture.