As a part of the workflow, tags can be applied to orders when they contain a product with a specific SKU ID. Orders will be tagged as specified, and this process can be repeated multiple times throughout the workflow.
In this example, the order is automatically tagged with "specialBikeOrder" as part of the workflow.
The workflow step is triggered on status new
To set this up, follow these steps:
Before adding the workflow step
Ensure that the tag you want to add to the order, such as "specialOrderTag," exists in the order settings.
Add workflow step
- Navigate to configuration -> Orders -> Order types.
- Choose a specific order type, such as "Online Orders."
-
Select a order status, such as "New," where you want to insert a workflow step. In this workflow step, specify where you want the tag to be applied to the order.
- Search for tag in the add search field and select “add order tags by Sku ID ”
- Click on the ellipsis and select "Edit."
- Click on properties
- Click on "Add property."
- Enter "productIds" in the key field and input a skuID in the value field. You can add multiple skuIDs as a comma-separated list.
- Add another property. Enter "tag" in the key field and the desired tag in the value field. Then, click OK.
- Click on Update.
- Remember to publish the changes.