In WC 5.6 (released Aug 2021), functions were added to support a shipping phone field (https://github.com/woocommerce/woocommerce/pull/30097). This field has very little support via the default UI however. There's no shipping phone checkout field for example. There is a field shown on the edit order/subscription screen though.
Shipping phone number field on the edit order/subscriptions screen
This shipping phone field wasn't being copied to renewal orders. This PR fixes that.
How to test this PR
Purchase a subscription or create one manually from the admin UI.
Edit the subscription shipping address and add a phone number. (see example screenshot above).
From the subscription actions select Process a renewal and save.
Go to the newly created renewal order screen.
On trunk the shipping phone will be empty.
On this branch, the shipping phone should be copied from the subscription.
Product impact
[x] Added changelog entry (or does not apply)
[ ] Will this PR affect WooCommerce Subscriptions? yes/no/tbc, add issue ref
[ ] Will this PR affect WooCommerce Payments? yes/no/tbc, add issue ref
[ ] Added deprecated functions, hooks or classes to the spreadsheet
Description
This PR adds to the changes made in https://github.com/Automattic/woocommerce-subscriptions-core/pull/492.
In WC 5.6 (released Aug 2021), functions were added to support a shipping phone field (https://github.com/woocommerce/woocommerce/pull/30097). This field has very little support via the default UI however. There's no shipping phone checkout field for example. There is a field shown on the edit order/subscription screen though.
Shipping phone number field on the edit order/subscriptions screen
This shipping phone field wasn't being copied to renewal orders. This PR fixes that.
How to test this PR
trunk
the shipping phone will be empty.Product impact