Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
We have no way to transition an order between workflow states through the order listing page (VBO view).
Proposed resolution
Provide a dropbutton with transition options. If only one, display single button (like Operations column's Edit/Reassign/Delete buttons).
Since this view is a VBO form, the buttons need to be links to a transition form that's somewhere else.
Remaining tasks
- Patch/PR
- Tests
User interface changes
Add button(s) in column of order listing view.
Comments
Comment #2
steveoliver CreditAttribution: steveoliver commentedRemoving JIRA prototype image.
Comment #3
steveoliver CreditAttribution: steveoliver commentedRemoving parent issue as the issue is already Related.
Comment #4
bojanz CreditAttribution: bojanz at Centarro commentedThere's no patch here.
Comment #5
mglamanMarked #2816233: Order listings should show possible state transitions. as duplicate, since this ticket has information on how it has to be implemented. We'll need a "transition" confirm form which the buttons link to.
Comment #6
cornifex CreditAttribution: cornifex at Acro Commerce commentedComment #7
griz CreditAttribution: griz commentedI realise this issue is four years old, but are there any plans to implement this? Or is there a contrib module that takes care of it?
If not, if somebody could give me some high-level guidance I could make a start.
I understand that the buttons need to be links rather than form submit buttons, and I'm assuming the order ID and next state should be passed as parameters. But where is the form?
Still quite new to D8... I gather I would need to define a route, but the rest is a mystery to me so far.
Comment #8
griz CreditAttribution: griz commentedI see that when editing the State field in the view, and it is possible to select 'Transition form' as the formatter;
this places the transition buttons in the table as I had hoped.However as mentioned above, this doesn't work.
Comment #9
AnybodyStill makes sense and is somehow related to #3126327: Allow applying transitions in bulk for orders