We have a datepicker addon on one of our products which causes a fatal error since $field is not set in the AddonService.php file (line 322). Is it possible to either add the datepicker field type to the switch statement, or have a default type so that $field is set to maybe a WC_Product_Addons_Field_Custom object? Right now I added it in so that uses that object and that fixes the issue, but wanted to mention as on a future update of course that custom code will get replaced if it’s not added to the core. Thanks!
Last updated: October 8, 2026
0 comments
Log in to comment on this feature request.