Last updated
Last updated
The display and storage of option values in line items depend on specific option values and the fields configured in the Line Item Editor setup.
Options in the editor are displayed as read-only by default. However, quantities and prices can be modified if the Quantity Editable or Price Editable settings are activated in the option data configuration.
For an option with a quantity of 2 and a total price of $90, the calculation works as follows:
If an option value is mapped to a field that has been added as a column in the Line Item Editor, its display and storage behavior follow the columnβs configuration:
If the column has the βDo Not Saveβ setting enabled, the value will not be stored in the database, even though it is displayed in the editor.
Fields not added as columns in the Line Item Editor will not be displayed in the editor but will still be stored internally.
If the mapped field in Salesforce has read-only field permissions, the field will not store the value even if included in the column settings.
In this scenario, the Total Price field is mapped to the TotalPrice field in the line item but is configured with the βDo Not Saveβ setting in the editor:
The optionβs total price is mapped to the line itemβs TotalPrice field.
When the option is added and saved, the TotalPrice field is not stored due to the βDo Not Saveβ setting.
Quantity
Configured Product Quantity Γ Option Quantity
2 (Configured Product) Γ 1 (Option) = 2
Total Price
Option Quantity Γ Option Unit Price
2 Γ $45.00 = $90.00
Quantity
Displayed as the product of the configured productβs quantity and the optionβs quantity.
Total Price
Displayed as the result of multiplying the optionβs unit price by the optionβs quantity.