Tags/topics: 
4
Answers
Vote up!
0
Vote down!

Allow Users To Change Status Of Completed Orders

My apologies if this is a very basic question. I’ve inherited an already built site that’s using commerce for workshop registrations. We want each individual user to be able to change the status of any of their own completed orders. We just want people to be able to change the status to cancelled. I can’t figure out how to even get started on this.

It’s set up like so… three entities: product (workshop), order (what they order), and line item (each item in the order). Line item has a field called "Status" that defaults to "pending" and then can be changed to "attended" or "canceled." It seems like can't give users the level of access they need to cancel their own orders without also giving them access to administer the whole store.

Is that correct? Where do I even begin to look for this as I’m brand new to commerce.

[Edited to add]:

I think maybe it's a bit more than that and it wasn't obvious to me at first. They need to be able to change the status of the Line Item (not just the order), and the Line Item status is a field that was added and is not part of core commerce.

Asked by: Blake
on May 13, 2013

Comments

I think maybe it's a bit more than that and it wasn't obvious to me at first. They need to be able to change the status of the Line Item (not just the order), and the Line Item status is a field that was added and is not part of core commerce.

- Blake on May 13, 2013

4 Answers

Vote up!
0
Vote down!

Maybe you are also new to Drupal, look at the /admin/people/permissions and search for the Orders tab, you can edit the permissions there, but they will have access to all the statuses of the order, not just completed, pending, but it's a starting point. I hope it helps.

Answer by: Banzai
Posted: May 13, 2013
Vote up!
0
Vote down!

Maybe I'm reading permissions wrong? They'll still only have access to their own orders? Why am I thinking they'll have access to other things? It'll be find if they have access to any status of their own order, but I don't want them to have any other permissions.

Answer by: Blake
Posted: May 13, 2013
Vote up!
0
Vote down!

I think the problem is they need to be able to change the status of the Line Item and not just the order? And I think the Line Item status is a field added and may not be part of core commerce.

Maybe there's another way?

Answer by: Blake
Posted: May 13, 2013
Vote up!
0
Vote down!

I now think the problem is more complex that that. It looks like they need to be able to change the status of the Line Item (not just the order), and the Line Item status is a field that was added and may not be part of core commerce.

Maybe there's a better way?

Answer by: Blake
Posted: May 13, 2013