Use Order#email to show the order's email in new admin#5596
Use Order#email to show the order's email in new admin#5596tvdeyen merged 1 commit intosolidusio:mainfrom
Conversation
3fc8a15 to
deed35a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5596 +/- ##
=======================================
Coverage 88.58% 88.58%
=======================================
Files 685 685
Lines 16404 16406 +2
=======================================
+ Hits 14531 14533 +2
Misses 1873 1873 ☔ View full report in Codecov by Sentry. |
|
I'm not necessarily opposed to this change, but can you provide some more context? In all the stores I work on, the order email gets set to the user email for non-guest orders, so I'm not sure how much value this provides. |
I have some apps that behave like PoS, where a logged-in user can create orders for others, this is just the view layer, it does not change anything at all, The previous admin used to render |
|
How does users creating orders for others factor in? Shouldn't that use the |
tvdeyen
left a comment
There was a problem hiding this comment.
This is actually a bug fix, but I think we should just use order.email here, as this already takes your use case into account.
deed35a to
9364b2c
Compare
|
@softr8 I made the change so that we can merge this in. Thanks for reporting. |
`spree_orders` table has the column `email` which stores the email of guest orders or users email for non guest orders. We should use that in the new admin to display the email so that guest orders work as well.
9364b2c to
93abf41
Compare
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
|
Thanks @tvdeyen !!!! |
Summary
spree_orderstable has the columnemailwhich stores the email ofguest orders or users email for non guest orders. We should use
that in the new admin to display the email so that guest orders work
as well.
Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed: