Validation should be done before the add to cart is fired, or the button is disabled until mandatory fields have been completed.
This would prevent data loss when using the plugin with bookings as currently if a mandatory add-on field is missed the page is reloaded and the bookings date is lost.
Closed
Last updated: July 25, 2018
Log in to comment on this feature request.
Hey there,
Thank you for getting in touch!
I ran a test using the latest Product Add-Ons version (v6.8.2) and I noticed that all validation checks are performed both when customers click away from an invalid add-on and when the Add to Cart button is clicked. For invalid add-ons a custom error message shows up. The values of valid add-ons remain intact, as the add-ons validation no longer triggers a full page refresh.
If you notice any issues with the latest plugin version, please get in touch with our support team: https://woocommerce.com/my-account/contact-support/