Enable bulk order Cancel in the UI by using the action property in the LIST component
How-to Guide
Author:
Fluent Commerce
Changed on:
8 July 2024
Key Points
- To enable cancelling orders via the UI the cancel order ruleset needs to be used
- Update the mystique manifest to show the list action.
Steps
Check cancel order ruleset in the workflow
Ensure that all of the order workflows contain the `cancelOrder` ruleset. For example:
Enable List User Action in the order manifest
test the change in the UI
As you can see in the ruleset trigger section, Only `CREATED`, `RECEIVED`, or `BOOKED` status will enable the `orderCancel` feature. Therefore, the first record on the list must have the right status to see the checkbox:
An example of List that does not show the checkboxes
Here is an example where the first entry in the list is not in `CREATED`, `RECEIVED`, or `BOOKED` status:
Filtering the order list result
The user can filter the list by using the status:
Test bulk cancel
Select 2 entries and click the CANCEL ORDER button; a confirmation will be displayed. By clicking CONFIRM, both orders will move to `CANCELLED`. 