Skip to main content
Version: Released

Remove to All

Apply Rule​

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

KeyValue
IDRemoveAllRule
Translation keyNot 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 nameTypeDefault valueDescription
Can be any parameterobject–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": [],
"worktopOption": [],
"front": ["drawerFront"]
}

To understand this rule, we can refer to the example above.

In the Planner, we will get the Delete All button only for these three parameters: plinth, worktop, and front.

In the case of plinth and worktop, only the respective parameter will be deleted. In the case of front, the drawerFront will also be deleted along with the front parameter.

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.