Can't get this to display a result when using the field type on a custom commerce line item.

Steps to create the issue:

1) Create a custom line item (either using a custom module or the Commerce Custom Line Items (Types) module).

2) Add two integer fields: field_a and field_b

3) Add math field with the expression: [field_a:0:value] + [field_b:0:value]

4) Create corresponding product and product display.

5) Visit the product display page and see...

If the widget was set to 'read only' it just prints the label and nothing else. If the widget was set to 'textfield' it prints the label and an empty field.

Obviously, it would be very nice functionality to have; to be able to perform calculations on user entered data for creating user customised products or price calculations.

Comments

bobfries created an issue. See original summary.

bobfries’s picture

Issue summary: View changes
bobfries’s picture

Issue summary: View changes