As part of the workflow, tags can be added to orders containing products with specific category IDs. Orders will receive tags as specified, and this action can be repeated multiple times during the workflow.
Before adding the workflow step
Ensure that the tag you want to add to the order, such as "OrderTag," exists in the order settings.
Adding the workflow step
1. Navigate to configuration -> Orders -> Order types.
2. Choose a specific order type, such as "Online Orders."
3. 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.
4. Search for tag in the add search field and select “add order tags by category ID ”
5. Click on the ellipsis and select "Edit."
6. Click on properties
7. Click on "Add New Property."
8. Enter "categoryIds" in the key field and input the category ID in the value field.
9. Add another property. Enter "tag" in the key field and the desired tag in the value field. Then, click OK.
10. Click on Update.
11. Don't forget to publish the changes.
12. Navigate to the cart section and create a cart that includes a product linked to the specified category ID. This step will verify that the order is appropriately tagged when it contains a product associated with the specified category ID.