Vote up!
Vote down!

admin edit line items after the order has been placed

What's the best way for an admin to edit a line item after the order has been placed?

Specifically on an 'edit order' page (like http://my-site/admin/commerce/orders/#/edit), it seems like only the quantity and price are viewable and editable. And I don't even see the custom line items associated with that order.


Asked by: MM10
on January 26, 2013


bump. Anyone out there that might advise? I'd like to be able to edit line items of posted orders, preferably using the edit order page (rather than make my own view which would be redundant!).

- MM10 on January 28, 2013

I of course know how to use inline entity form with product displays, but I too was wondering how to add fields to this page admin/commerce/orders/(order#)/edit that you can change like price and quantity. Would you or anyone be so kind as to offer an example of how to implement inline entity form for the orders edit page? Use case is trying to make a yes no option to indicate if a line item was delivered or not. Idea being you can enter the order and check/change this status. Thanks much in advance.

- planettucker on March 27, 2013

3 Answers

Vote up!
Vote down!

It took me a while to figure this out too...

Go to Store > Configuration > Order settings > Manage fields (/admin/commerce/config/order/fields)

Look for the "Line item reference" field. By default the widget type is line item manager. Change it to "Inline Entity Form".

Now when you edit an order, you'll be able to use the inline entity form to edit the line item fields.

Answer by: leopitt
Posted: Apr 29, 2013
Vote up!
Vote down!

See Abenezer's answer in the comments section.

Josh Miller
Answer by: Josh Miller
Posted: Jan 29, 2013
Vote up!
Vote down!


Thanks for the reply. That does the trick. Additional tid bit, be sure to choose inline entity form - multiple values so you can see all line items and edit them. Otherwise you'll see and be able to edit the first line item with the single value option.

Answer by: planettucker
Posted: May 6, 2013


It seems to me, with the inline entity form i still can't edit the field line_item_label
This has still the old value, after i changed the label and SKU of the linked product.

What i can edit via inline entity form is the product, amount and short label.

- sirtet on October 11, 2016