The idea is that the customer, after creating their custom line item, should be able to follow a link in their shopping cart to view or edit the existing line item. This would load a page like the add to cart form but with the existing data entered, and allow the user to update a line item they created without having to delete and replace.
Once the cart is checked out, line items would by default become non-editable by the customer.
This would be very helpful in situations where the number of fields that need to be added to the custom line type is very large. It also would eliminate the need to create two entities, a node and a custom line type, with the same fields, in order to make the save and edit functions work.
Comments
Comment #1
rfayI was thinking we might be able to do something like this with Editable Fields, but I don't think this is a Commerce Custom Line Items feature, but a commerce feature that we should do.
I'd like to see us able to do things like show the line item in the add-to-cart based on rules (possible?) and display it more flexibly in the cart, or do other things like you're suggesting.
If you agree that this is a Commerce feature request, please move it over there.
Comment #2
Gauntlet-1 commentedAgreed. This should be in Commerce, since it applies equally to custom fields on the default line item type, anyway.
Comment #3
rszrama commentedSee #1211278: Allow commerce_cart_add_to_cart_form() to edit line items