Flow Automation: Triggering Workflows When an Order Product Is Edited
You can use the Order edited trigger in Flow Automation to start a workflow after an order’s products are edited. Once an order is paid, you can edit its products from your SHOPLINE Admin, for example by adding products, removing products, or changing quantities. With this trigger, you can automatically notify your warehouse to recheck the picking list or add an "Order edited" tag to the order when products change, so the warehouse doesn’t fulfill the order based on outdated products.
This guide explains the actions supported by this trigger, how to test the workflow, and how to apply it in a real-world scenario.
| Note: This trigger starts only after an order’s products are edited. Changes to other order details alone, such as the shipping address or order notes, won’t trigger the workflow. |
Supported Actions
The following actions are primarily used in workflows initiated by the Order edited trigger.
- [General] Send email
- [General] Update counter
- [General] Delay
- [Order] Add order tags
- [Order] Update order notes
Testing the Workflow
To test whether the workflow is successfully triggered after an order’s products are edited, follow these steps:
- In Flow Automation, set up a workflow using the Order edited trigger, then click Publish to activate it.
- From your SHOPLINE Admin, go to Orders and open a paid, unshipped test order.
-
Click Actions and select Edit products.
-
Add a product or change a product’s quantity, then click Update order.
Note: Product editing isn’t available for fulfilled orders, local delivery or store pickup orders, or orders containing subscription products. For details on editing order products, refer to "Editing Order Products." -
After saving the changes, go back to Flow Automation to check the running results.
Note: For more information on how to monitor the execution of your workflows, please refer to the "How to View the Running of a Flow" section in the "Introduction to Flow Automation" guide.
Example Use Case
Here is a practical example of using the Order edited trigger to prevent your warehouse from fulfilling orders based on outdated products.
Scenario: When an order’s products are edited and the order hasn’t been fulfilled yet, tag the order and notify the warehouse to recheck it.
- Trigger: Order edited
- Condition: Order product snapshot information: the Shipping status of the product equals to null
-
Action 1: Add order tags
- Tags: Order modified
-
Action 2: Send email
- Email subject: Order edited: [Order Number]
- Email content: The products in order [Order Number] have been edited. Please reprint the picking list and fulfill the order based on the latest products.
- Recipient email: Manually enter your warehouse staff’s email address
- Outcome: Your warehouse is informed of order changes right away and can re-pick products based on the latest details, which reduces wrong or missing shipments.
|
Notes:
|