Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Order
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Jan 2011 at 10:02 UTC
Updated:
24 Nov 2015 at 17:13 UTC
Jump to comment: Most recent
Comments
Comment #1
smokinggoat commentedOK, I created the simple view below.
Some notes:
* In order for a User to see this, I decided on the Permission "Access lists of orders, primarily for viewing and referencing" - which may or may not be the right permission. So that means this permission needs to be changed in the Install Profile
* Order totals are not available
* Needs UI love:
- I've got created date and updated date on display - not sure it needs any other column besides Order Total
- When you click on a specific order, it uses the basic order display, which has two problems a) sez "Line Items" at the top, b) no "back" link to the list of orders.
If I whip up a View for (b) above, I'll update this issue.
Comment #2
smokinggoat commentedAnother version - with lots of help with PCambra.
Some updated notes:
* There are now two Views:
- Customer Orders
- Customer Order Line Items
BUGs:
* Access restriction is not defined correctly. As a simple user, I can change the URL and see other user's orders...
* In Customer Order Line Items, we are missing a header zone for the Order Info (the number, creation date, status of Order)
Updated Customer Order View:
Updated Customer Order Line Items
Comment #3
pcambraWe need a user validator for both views that makes sure that only current user and an "administrator"
- Create a specific permission to "view the order history of all users"
- Add a default validator for the owner uid that checks if it is the current user or if the user accessing has the permission above.
Comment #4
recidive commentedOk, we need only the first view for now. The other will be a view mode (not from views but have a view inside). I have this working now and am working on a patch for it, although in the long run I think we'll need to have distinct views for admin and customer view modes.
The order list view need to filter out order in "Shopping cart", "Checkout" and "Canceled" states. It depends on #1032330: Add an Order State field / filter to Views.
Comment #5
rszrama commentedAlrighty, I pulled and removed the View as recidive mentioned above. As soon as I review pcambra's patch in #1032330: Add an Order State field / filter to Views, I'll edit the View to filter by order state (i.e. to exclude shopping cart orders and orders in checkout).
Comment #6
rszrama commentedAnd committed the change to the View. Yay. : )
Comment #9
nourheine commentedhey there , i'm looking for a way to create a view for instantly add to cart product giving the client two possibilities (confirm or delete the order), any help please?
Comment #10
spencerthayer commentedHas the permissions issue be resolved? I'm really starting to hate Drupal Commerce.
Comment #11
rszrama commentedWhat permissions issue? I don't think it's fair to cast hate on a project based on a 5 year old issue from the project's early stage of active development...