The code inside the Custom_calculation option will be wrapped in a unique JavaScript function. You do not need to add a return value since the variable price
will always be returned.
Example JS code:
1 2 3 |
var a = 5; var b = 10; price = price + a * b; |