Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New dimensions field #3093

Merged
merged 3 commits into from
Sep 11, 2024
Merged

New dimensions field #3093

merged 3 commits into from
Sep 11, 2024

Conversation

atorresveiga
Copy link
Contributor

@atorresveiga atorresveiga commented Sep 11, 2024

Description

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.

Testing

It is best to test these changes using the Woo PR

@atorresveiga atorresveiga merged commit a6a3b2f into trunk Sep 11, 2024
13 checks passed
@atorresveiga atorresveiga deleted the issue/12528-new-dimensions-field branch September 11, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant