How to automatically calculate the size of a variant
An example of how to use the calculate action
Last updated
An example of how to use the calculate action
Last updated
To make a rule that will calculate the volume of a variant based on the dimensions of that variant, make a trigger that triggers when any of the dimensions change. Then add a calculate action.
In that action chose the math operations. In this example the hight and width is multiplied. Then the result is multiplied with the length. In the end the result is multiplied with 0,001 to make sure the units are correct. Then chose what attribute the result should be written to. By clicking the operator between the values you can chose the operation (x,/,+,-).