Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-4814

In Product details user interaction with options input form doesn't update price elements

    Details

      Description

      User interaction with Product Options does not submit information of:

      • input element that user selected
      • new value that user selected

      Backend always receives only current ddmFormValues which

       

      This is what I expect in metal_js.jspf in minium:

      function checkCPInstance(portletURL, args) {
      	    debugger;		var formData = JSON.stringify(getFormData())
      		var requestBody = new FormData();		requestBody.append(
      			'_' + CP_CONTENT_WEB_PORTLET_KEY + '_ddmFormValues',
      			formData
      		)
              requestBody.append(
                  '_' + CP_CONTENT_WEB_PORTLET_KEY + '_ddmFormEventFieldName',
                  args.fieldInstance.fieldName
              )
              requestBody.append(
                  '_' + CP_CONTENT_WEB_PORTLET_KEY + '_ddmFormEventFieldValue',
                  args.value
              )		return fetch(
      			portletURL,
      			{
      				body: requestBody,
      				credentials: 'include',
      				headers: new Headers({ 'x-csrf-token': Liferay.authToken }),
      				method: 'post'
      			}
      		)
      		.then(function(response){ return response.json() })
      		.then(function(jsonResponse) {
      			return Object.assign(
      				jsonResponse,
      				{
      					formData: formData
      				}
      			)
      		})
      	}
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alessandro.iovane Alessandro Iovane
              Reporter:
              igor.beslic Igor Beslic
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.3