Closed (fixed)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Orders
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2012 at 08:46 UTC
Updated:
16 Apr 2012 at 08:21 UTC
Jump to comment: Most recent file
/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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1410054-user-order-history.patch | 28.14 KB | longwave |
| #1 | 1410054-admin-order-history.patch | 7.51 KB | longwave |
Comments
Comment #1
longwaveThis patch replaces admin/store/customer/orders/% with a display based on the main order listing and search views.
Comment #2
longwaveThis 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.
Comment #3
SilviuChingaru commentedNice work... Thank you!
Comment #4
diggingrelic commentedWorks 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
Comment #5
longwaveCommitted #1 and #2 with some further minor cleanups to remove obsolete JS and CSS.