WooCommerce trigger
WooCommerce is a customizable, open-source e-commerce plugin for WordPress.
!!! note "Credentials" You can find authentication information for this node here.
Events
- coupon.created
- coupon.updated
- coupon.deleted
- customer.created
- customer.updated
- customer.deleted
- order.created
- order.updated
- order.deleted
- product.created
- product.updated
- product.deleted
Example Usage
This workflow allows you to send a message on Mattermost when an order is created in WooCommerce. You can also find the workflow on Robbot Automation. This example usage workflow would use the following nodes.
- [Mattermost](/integrations/builtin/app-nodes/Robbot Automation-nodes-base.mattermost/)
1. WooCommerce Trigger node
This node will trigger the workflow when an order is created in your WooCommerce store.
- First of all, you'll have to enter credentials for the WooCommerce Trigger node. You can find out how to do that here.
- Select 'order.created' from the Event dropdown list. This will trigger the workflow when a user sends a message.
- Click on Save to run the node.
2. Mattermost (post: message)
This node will send a message to a Mattermost channel sharing the details of the order that was created in WooCommerce.
- First of all, you'll have to enter credentials for the Mattermost node. You can find out how to do that here.
- Select the channel from the Channel ID dropdown list.
- Click on the gears icon next to Message field.
- Enter the following message in the Expression editor
{{$node["WooCommerce Trigger"].json["billing"]["first_name"]}} bought {{$node["WooCommerce Trigger"].json["line_items"][0]["name"]}}!
- Click on Save to run the node.
!!! note "Activate workflow for production" You'll need to save the workflow and then click on the Activate toggle on the top right of the screen to activate the workflow. Your workflow will then be triggered as specified by the settings in the WooCommerce Trigger node.