• Resolved snb8

    (@snb8)


    To whom it may concern,

    I would be very grateful if you could help me with this problem.

    I currently have installed the version 1.34.1 of “Forminator”.

    In this version and earlier the plugin launches a somewhat confusing error message for the user in case you leave unfilled some mandatory field (such as the name or the email) and press the payment button of “paypal in forms payment”.The message that appears is “The amount in PayPal must be greater than 0”, regardless of whether or not a product whose amount to be paid is greater than 0 is selected.

    In order to replace this message “the amount in PayPal must be greater than zero” confusing for the user with this more clarifying one “Please correct the errors before sending”, you proposed this solution in the WordPress forum:
    The proposed solution to this problem was to add the code that I indicate below as mu-plugin.

    (I also added the second conditional “if” (copying and pasting) the one provided by you so that it also works for the spanish language since my website has it in two languages (english and spanish).

    mu-plugin does not work on versions prior to 1.34.1

    This piece of code worked perfectly for versions prior to 1.34.1, but when I installed this version (the 1.34.1) this mu-plugin stopped working, so I had to replace it with a completely different code (someone did it for me since I have no programming knowledge). The code as mu-plugin in the version I currently have installed (1.34.1) is this:

    mu-plugin woks on version 1.34.1

    My doubts are whether in the new version that they have just released (the 1.35.0) is already solved this problem or if not, if you could please provide me with some code like mu-plugin so i could add it as a solution and that it works for any version that you re-launched, as I would like to continue using this wonderful plugin.
    Therefore, I would like to make sure that the problem will not occur again after upgrading to the new version 1.35.0. or any other future version (I have my website in production) , since as i tell you, I do not have so deep programming knowledge to be able to correct the problem every time I update forminator.

    Thank you so much.
    All the best, Sonia.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @snb8,

    I hope this message finds you well.

    Could you please share an export of the form so we can take a closer look and help you further? Please share the form using Google Drive or Pastebin.com.

    I hope the following guide comes in handy: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export

    Kind Regards,
    Nebu John

    Thread Starter snb8

    (@snb8)

    To whom it may concern,

    Sorry for the delay in replying.

    I did not send you the exported form because I have doubts about whether the information for the keys associated with the PayPal button on that form is included or appears when exported the form. I did not want to compromise the privacy of my site by publishing my exported form until I consulted you.

    In case it helps, for now, I attach two screenshots:

    • screen-No-Mistake.png-> You can see an example of execution when I test the form with the PAYPAL BUTTON (for production mode) DISCONNECTED from Settings-> Payments of the plugin. The ERROR MESSAGES that your plugin throws are COHERENT.
    • Screen-Mistake-Confuse-Message: You can see an example of execution when I test the form with the PAYPAL BUTTON (for production mode) CONNECTED from Settings-> Payments of the plugin.
      The ERROR MESSAGES that your plugin throws are NOT COHERENT. It tells me that the amount in PayPal must be greater than zero despite having selected a service with a higher price. This happens when one of the required fields is left blank.

    In short, the confusing or inappropriate message appears when you click the paypal button (that is connected with the necessary keys in order it works in production) and there are one or more required fields not filled in . Until you test it with the keys provided by PayPal, you will not be able to reproduce the error and I cannot provide you with those keys since they are private.

    Version 1.35 still has this problem. I tested it by updating the version on a local test site. As I mentioned, I use a mu_plugin, but please consider fixing this for future versions, or at least keep the mu_plugin I use working or provide another one that will work for future versions as well.

    Let me know what you think. Thank you very much.
    Best regards. Sincerely, Sonia.

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @snb8,

    I’m afraid, this is something which I couldn’t replicate out of the box and might be more specific to the form.

    Instead of using the mu-plugins, could you please check and see how it behaves if you delete the PayPal field, save the form and then re-add the PayPal field again to see if the issue still occurs?

    Please do make sure to save the form after removing and before re-adding the field.

    If the issue is still the same then we’ll need the form export. The Form export shouldn’t carry any keys. It’ll have the email from the “Notifications” created, so if you want to protect that info then you can duplicate your form, remove any sensitive information such as notification, and then export it.

    Please check the following doc on how to export a form:

    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export

    You can share the export file via Google Drive, Dropbox or any cloud service in the next reply.

    Looking forward to your response.

    Best Regards,

    Nithin

    Thread Starter snb8

    (@snb8)

    Hi,

    If I dont’ use the mu-plugin and I create new forms with new button paypal, the error happens.

    I don’t understand why the first time the error is “Paypal amount must be greater than Zero”, but if I press the button again and again the message changes and this is “Please, correct the errors before submission”.

    Here are the exported form in Live and Sandbox mode.

    Exported- form – Sandbox mode

    ExportedForm-Live mode

    Thanks.

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @snb8,

    Thanks for providing further info, I do see what you meant, and it appears to be a potential bug.

    However, just to be sure is the issue only specific to Validation errors? Or do you face any issues with Submission after you fill out all the required forms?

    If I’m not wrong, the issue is only with incorrect validation error messages, right? I’m reporting this to our Forminator teams attention so that this could be looked asap.

    Thanks for bringing into our attention.

    Kind Regards,

    Nithin

    Thread Starter snb8

    (@snb8)

    Hi,
    I am happy to be able to help and contribute something.
    You are right, the issue is only with incorrect validation error messages.
    I do not face any issues with Submission after I fill out all the required fields of the forms.
    Thank you very much for taking this into account.

    Kind Regards

    Sonia.

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @snb8

    Thank you for the update.

    I looked deeper into our reported bugs and found a similar report in the past, I let our developers know you are also facing this problem.

    We can’t give an estimated time to release a fix but you can subscribe to our roadmap via: https://wpmudev.com/roadmap/#dev-subscribe

    Best Regards
    Patrick Freitas

    Thread Starter snb8

    (@snb8)

    Thank you for taking this into account.
    Yes. I started using this plugin more than a year ago and this problem already existed.
    But searching the forum, I was able to solve it thanks to the first mu-plugin that I found in this forum and I mentioned you. However, as I already told you, this one stopped working when I updated forminator to new versions and I had to change it again for another mu-plugin that someone make for me, because I didn’t know how solved the problem. Therefore, I thank you for taking this into account for future versions.

    Thank you very much again.
    Greetings. Kind regards, Sonia.

    Plugin Support Zafer – WPMU DEV Support

    (@wpmudevsupport15)

    Hi @snb8,

    As this issue was already forwarded to our developers, we are marking this thread as resolved. If you have any additional questions or require further help, please let us know!

    Kind regards,
    Zafer

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.