/user/%/orders and /admin/store/customers/orders/% can and should be replaced with Views for more flexibility. This has already been done for the admin order, product and customer listings.

Comments

longwave’s picture

Status: Active » Needs review
StatusFileSize
new7.51 KB

This patch replaces admin/store/customer/orders/% with a display based on the main order listing and search views.

longwave’s picture

StatusFileSize
new28.14 KB

This patch replaces user/%/orders with an identical View.

It contains the actions patch from #794412: Allow 'view own orders' permission in uc_order_actions, updates the order ID link handler to link to the customer order view depending on permissions, and adds a Views argument validator for "current user or user has permission". The old listing code is marked deprecated; we should probably not remove it now 7.x-3.0 is out.

SilviuChingaru’s picture

Nice work... Thank you!

diggingrelic’s picture

Works great! I was trying to create this exact view myself when I was directed here. Did EXACTLY what I wanted and saved me a bunch of time. For sure a much needed addition. Thank you!

Brandon

longwave’s picture

Status: Needs review » Fixed

Committed #1 and #2 with some further minor cleanups to remove obsolete JS and CSS.

Status: Fixed » Closed (fixed)

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