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.
When you're at user/UID/orders/OID, there's no easy way to get to the admin page for the same order at admin/commerce/orders/OID/view.
The use case here, I think, is that customers who email the store for technical support will send the URL for the order they have received, and a staff member should be able to follow that link and then get to the admin section for that order.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1665540-2.update_order_action.patch | 939 bytes | rszrama |
#2 | update-this-order.png | 18.92 KB | rszrama |
#1 | 1665540.commerce.order-ui-join-user-to-admin.patch | 930 bytes | joachim |
Comments
Comment #1
joachim CreditAttribution: joachim commentedHere's a patch.
The access check is not as good as it could be, due to #1665544: users have access to admin order page for their own orders.
Comment #2
rszrama CreditAttribution: rszrama commentedThis has annoyed me, too, but I'm wondering if it wouldn't make more sense to have the link go to the edit page. The admin view is typically the exact same as the customer view, and I feel like I'll just end up clicking the action link and immediately having to find the "Edit" tab.
In light of the related issue being committed, here's an updated patch for review. Result:
Comment #3
joshmillerLove the functionality this would add, don't really see a downside.
joachim mentioned on IRC that he wanted it say "Edit" instead of "Update this order" and ryan agreed that might be better.
Comment #4
rszrama CreditAttribution: rszrama commentedGreat, committed. : )