Multiple form submissions & Order Status reset
-
Hello Support Team,
First of all, congratulations on releasing the new plugin, it generally works great for my store’s needs.
Since the plugin is relatively new, I expected there might be a few minor hiccups to iron out. While testing, I found two bugs regarding the withdrawal form functionality that I wanted to bring to your attention so you can make the plugin even better:
Bug 1: Missing double-submit prevention & persistent loading state
Issue: When a customer successfully fills out and submits the withdrawal form, the loading animation on the submit button persists indefinitely.
Consequence: The button is not disabled after a successful submission. The customer can click the button multiple times, which re-submits the form and sends out duplicate emails for every single click.
Expected behavior: The button should return to its normal state (or show a “Success” message) and be temporarily disabled after the first successful submission to prevent duplicate AJAX requests/emails.
Bug 2: Missing validation for already processed withdrawals
Issue: After a store admin explicitly accepts or rejects a withdrawal request, the customer is still able to access and fill out the withdrawal form for that exact same order.
Consequence: If the customer submits the form again, it resets the order status back to the pending withdrawal state, overriding the admin’s previous decision (Accept/Reject).
Expected behavior: If an order withdrawal has already been accepted or rejected by the admin, the form should no longer be available for that order (e.g., displaying a message like “Withdrawal already processed”), and the order status should be protected from being reset.
Thank you again for such a great plugin. Keep up the excellent work, and I am looking forward to the next update!
Best regards,
Stefan
You must be logged in to reply to this topic.