Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
At the moment, the main operation in the order list UI is 'Edit', but site admins (or customer support folks) more likely need to view the order instead, because the View page gives a lot more information about the current status of the order (comments, activity, etc.).
Proposed resolution
Add a View
operation in \Drupal\commerce_order\OrderListBuilder::getDefaultOperations()
and make it the default.
Remaining tasks
Review.
User interface changes
The default operation for orders will be View instead of Edit.
Before:
After:
API changes
Nope.
Data model changes
Nope.
Comment | File | Size | Author |
---|---|---|---|
#2 | order-ui-after.png | 56.08 KB | amateescu |
#2 | order-ui-before.png | 55.96 KB | amateescu |
#2 | 3164630.patch | 770 bytes | amateescu |
|
Comments
Comment #2
amateescu CreditAttribution: amateescu at Centarro for Indigo Herbs commentedThis should do it :)
Comment #3
s.messaris CreditAttribution: s.messaris commentedI find this very useful as well, simple patch that works great, setting to RTBC.
Comment #5
jsacksick CreditAttribution: jsacksick at Centarro commentedCommitted, thanks!