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.

#2 1665540-2.update_order_action.patch939 bytesrszrama
PASSED: [[SimpleTest]]: [MySQL] 3,570 pass(es). View
#2 update-this-order.png18.92 KBrszrama
#1 1665540.commerce.order-ui-join-user-to-admin.patch930 bytesjoachim
PASSED: [[SimpleTest]]: [MySQL] 3,589 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


joachim’s picture

Status: Active » Needs review
930 bytes
PASSED: [[SimpleTest]]: [MySQL] 3,589 pass(es). View

Here'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.

rszrama’s picture

18.92 KB
939 bytes
PASSED: [[SimpleTest]]: [MySQL] 3,570 pass(es). View

This 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:

joshmiller’s picture

Love 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.

rszrama’s picture

Status: Needs review » Fixed

Great, committed. : )

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.