The new Shipping extension introduced a new field for Custom package dimensions: dimensions. This PR adds this new field to the CustomData class and uses it when creating a CustomPackage, so we don't lose the package information and prevent a crash when the CustomPackage dimensions field is empty. Additionally to this changes I also updated the default value we were using for dimensions now instead of the empty string "" we will use "0 x 0 x 0", so that the app won't crash in case of a custom package with empty dimensions.
Description
The new Shipping extension introduced a new field for Custom package dimensions:
dimensions
. This PR adds this new field to theCustomData
class and uses it when creating aCustomPackage
, so we don't lose the package information and prevent a crash when theCustomPackage
dimensions field is empty. Additionally to this changes I also updated the default value we were using for dimensions now instead of the empty string "" we will use "0 x 0 x 0", so that the app won't crash in case of a custom package with empty dimensions.Testing
It is best to test these changes using the Woo PR