Returns the sum of the specified numerical attribute/value combination among the sibling configurations.
double SiblingsAttributeSum(string name; [bool includeSelf]; [string productTitle])
name |
The name of an attribute. |
includeSelf |
Optional argument to include current configuration in the attribute sum. Default is false. |
productTitle |
Optional filter to only include configurations of the specified product. |
Example
SiblingsAttributeSum("Weight"; true)
Returns the sum of the double or integer attribute "Weight" from all sibling configurations including current configuration.
Remarks
It is recommended to place attributes that read the value of other configurations’ attributes at the bottom of the attribute tree to reduce the risk of circular dependencies. Another solution is to replace either the referenced or referencing attribute with a parameter that is set using a template expression rule.