-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Draft orders are never placed #2105
Comments
Just ran into this again when I investigated why orders created from drafts don't show up in the metrics widget.
Fixing this issue would allow drafted orders to show up in metric widgets. |
Why is this code still not a part of the |
because nobody yet made the required changes to fix it.
We aim for patch releases every 2 weeks or so. Whatever has been fixed in that time window will make it in to that patch release. Most fixes are done by myself, but a significant amount of work is also done by the open source community and since this is open source, users are encouraged to contribute to fixes they want to see released, for the benefit of all :) |
Describe the bug
The order placement strategy is never called for Draft orders, so draft orders are never placed.
To Reproduce
Steps to reproduce the behavior:
PaymentSettled
The order placed strategy is never called, because a draft order is never
active
:vendure/packages/core/src/service/helpers/order-state-machine/order-state-machine.ts
Line 199 in 6cf1608
Expected behavior
Draft orders should trigger the same OrderPlacedStrategy as shop-api orders
order.isDraft
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: