Order create edit shipping lines support#11571
Merged
atorresveiga merged 18 commits intoissue/multiple-shipping-lines-supportfrom May 23, 2024
Merged
Conversation
added 14 commits
May 21, 2024 12:30
Collaborator
Generated by 🚫 Danger |
Collaborator
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## issue/multiple-shipping-lines-support #11571 +/- ##
===========================================================================
- Coverage 40.44% 40.35% -0.10%
Complexity 5202 5202
===========================================================================
Files 1084 1085 +1
Lines 63090 63201 +111
Branches 8643 8664 +21
===========================================================================
- Hits 25518 25504 -14
- Misses 35273 35397 +124
- Partials 2299 2300 +1 ☔ View full report in Codecov by Sentry. |
Base automatically changed from
issue/11394-shipping-lines-in-order-details
to
issue/multiple-shipping-lines-support
May 23, 2024 17:13
3 tasks
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #11393
Closes: #11395
Description
This PR introduces a significant enhancement by adding support for multiple shipping lines to the order create/edit flows. This is achieved by incorporating a new shipping section into the order create/edit screen. To display the shipping details, we utilize the current shipping lines field within the order, fetching the shipping method title from the
GetShippingMethodsWithOtherValueuse case. If the method title is not present in the local DB, it is simply not displayed.In addition to displaying shipping lines, I cleaned up all legacy codes of the button interaction for the shipping section in the order totals sheet and the logic to display a warning when there was more than one shipping line.
Finally, I made a slight adjustment to rely on the shipping lines itemId field for the add/update/delete functions so that we can manage the order's shipping lines.
Testing instructions
TC1
TC2
Images/gif
Screen_recording_20240522_163108.mp4
RELEASE-NOTES.txtif necessary. Use the "[Internal]" label for non-user-facing changes.