Closed billrobbins closed 1 year ago
Thanks @billrobbins for the detailed report and for providing steps to reproduce. We have a PR up to fix this here: https://github.com/Automattic/woocommerce-subscriptions-core/pull/403
This change will go out in WC Subscriptions 4.8.1
5915912-zen
Describe the bug
When a site uses custom address fields added with
woocommerce_admin_billing_fields
orwoocommerce_admin_shipping_fields
, opening a subscription in the admin will result in a call to undefined method error.It appears that the dynamic function call based on the keys in the billing and shipping addresses is failing because there are no methods to match the non-default fields.
https://github.com/Automattic/woocommerce-subscriptions-core/blob/d37bd4db47ccaf156fc57b4dc61761f9ab56d686/includes/admin/meta-boxes/class-wcs-meta-box-subscription-data.php#L216
To Reproduce
Expected behavior
I expect to be able to load the edit subscription screen with custom fields.
Actual behavior
This error will be triggered instead of completely loading the page:
Product impact
Additional context
5914186-zd-woothemes
-->