- marked as blocker
Quantity addons causing JS error
Issue #1062
resolved
Can be easily reproduce by creating 2 product addons - both Quantity type and both with the option "Show before appointment form".
Error:
jquery.min.js?ver=3.7.0:2 Uncaught TypeError: Cannot read properties of undefined (reading 'message')
at WC_PAO.Form.e.printMessage (addons.min.js?ver=6.4.3:1:16393)
at WC_PAO.Form.e.validateAddon (addons.min.js?ver=6.4.3:1:16082)
at HTMLInputElement.<anonymous> (addons.min.js?ver=6.4.3:1:2777)
at HTMLFormElement.dispatch (jquery.min.js?ver=3.7.0:2:39997)
at v.handle (jquery.min.js?ver=3.7.0:2:37968)
at Object.trigger (jquery.min.js?ver=3.7.0:2:70063)
at HTMLInputElement.<anonymous> (jquery.min.js?ver=3.7.0:2:70665)
at Function.each (jquery.min.js?ver=3.7.0:2:3129)
at e.<computed>.each (jquery.min.js?ver=3.7.0:2:1594)
at e.<computed>.trigger (jquery.min.js?ver=3.7.0:2:70640)
Cannot be reproduced for the Select field, it needs to be quantity and at least 2 of them with the “show before app. form” option enabled.
Reported here.
Comments (2)
-
reporter -
reporter - changed status to resolved
Fixed in 4.17.3 - It seems that the issue was due to the missing div reported here: https://bitbucket.org/bookingwp/woocommerce-appointments/issues/1057/addons-checkbox-missing-closing-div
- Log in to comment