We are trying to show some information before saving the product via an ajax call.

In this ajax, we need to pass all the product form data.

The initial thought was to serialize the product form. But cannot see the form tag in the product add/edit area.

How can we get this product form data in javascript to pass via ajax?

  • Why you not try before save product event observer? Jan 15, 2021 at 5:47
  • There already written a validation to check the values. But in case of error, it's hard retaining the changed values. So now the target is showing the calculated values before saving the product.
    – jpk
    Jan 15, 2021 at 5:58
  • you need to use that only. Jan 15, 2021 at 6:02


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.