Add a "Delivered" order status - #257
Merged
Merged
Conversation
Adds a `Delivered` case to the `OrderStatus` enum, alongside a matching `OrderDelivered` event. Like `Shipped`, it's only offered for orders with a shipping method, and the control panel keeps the packing slip and tracking number available once an order has shipped or been delivered. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Simple Commerce's `delivered` orders were being collapsed into `shipped` during migration. Now that Cargo has a `delivered` status, the distinction is preserved on both the order status and its timeline events. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Duncan McClean <duncan@doublethree.digital>
|
Released as part of v1.9.0. |
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.
This pull request adds a "Delivered" order status, sitting after "Shipped" in an order's lifecycle.
Previously, orders could only move as far as "Shipped", with no way to record that they'd actually arrived. This PR adds a
Deliveredcase to theOrderStatusenum, along with a matchingOrderDeliveredevent that's dispatched when an order moves into that status.Like "Shipped", the "Delivered" status is only offered for orders with a shipping method, and the tracking number and packing slip remain available in the Control Panel once an order has been delivered.
This PR also updates the Simple Commerce migration command, so
deliveredorders keep their status instead of being collapsed intoshipped– both on the order itself and its timeline events.Related: #252