I have a line item type with a custom amount field that allows the user to specify the amount they pay for the product in the add to cart form.
I also want to be able to allow the user to update the amount at any stage up until they have paid.
How can I make it so that users can edit this line item on the checkout page?
Ideally I would like to just have the equivalent of the add to cart form with my editable amount field output on the checkout page but I'll settle for any way to edit the line item on the checkout form.
I would like to keep custom code to a minimum but am willing to do whatever it takes if my only option is to go very custom.
If it matters to the solution, orders that contain this line item will only ever contain the one product, with quantity 1 and the variable price.
These orders use Commerce NoCart and Commerce Checkout Multilane to skip the regular cart step.
[EDIT]
An idea I just had was to create a custom checkout pane with my form on it and a submit function that updates the line other on the order. Does anyone see any reason why that wouldn't work?
Or does anyone know if something similar already exists that I could modify/extend faster than writing something new?