Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-112624

Product option value label is not updated with correct price when using Single Selection field type

    Details

      Description

      In Commerce (Minium), when using Single selection DDM form field type to render product option values with relative price, selecting new option value results in 

       

      java.lang.ClassCastException: java.lang.String cannot be cast to com.liferay.portal.kernel.json.JSONArrayjava.lang.ClassCastException: java.lang.String cannot be cast to com.liferay.portal.kernel.json.JSONArray at com.liferay.dynamic.data.mapping.form.evaluator.internal.functions.CallFunction._getStringValue(CallFunction.java:323) at com.liferay.dynamic.data.mapping.form.evaluator.internal.functions.CallFunction.setDDMFormFieldOptions(CallFunction.java:235) at com.liferay.dynamic.data.mapping.form.evaluator.internal.functions.CallFunction.setDDMFormFieldOptions(CallFunction.java:272) at com.liferay.dynamic.data.mapping.form.evaluator.internal.functions.CallFunction.setDDMFormFieldValues(CallFunction.java:309) at com.liferay.dynamic.data.mapping.form.evaluator.internal.functions.CallFunction.evaluate(CallFunction.java:87)

       

      A possible workaround is to use Select from list  field type for showing product option values, where options value labels are correctly updated depending on the currently selected option value!

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  12 weeks, 2 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP18
                  7.1.X