> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/recipes/woocommerce-order-to-wecom.md).

# Post new WooCommerce orders to a WeCom group with Duaer

In Duaer, every new WooCommerce order posts its number, total, customer, and items to a WeCom group.
## Build the order alert in Duaer

1. In WordPress, open WooCommerce › Settings › Advanced › REST API and create a key with Read/Write (the trigger registers a webhook with it).
2. Create a [WooCommerce credential](/integrations/builtin/credentials/woocommerce.md) in Duaer with Consumer Key, Consumer Secret, and the store URL.
3. Add [WooCommerce Trigger](/integrations/builtin/trigger-nodes/duaer-nodes-base.woocommercetrigger.md) with Event order.created.
4. Add the [WeCom](/build/wecom.md) node with the message-push resource and a group-bot Webhook credential.
5. Message: New order #{{ $json.number }}, {{ $json.total }} {{ $json.currency }}, {{ $json.billing.first_name }}, items: {{ $json.line_items.map(i => i.name + " x" + i.quantity).join("; ") }}
6. Publish the digital organization.

## Common issues

- Only large orders: add [If](/build/if.md) with {{ Number($json.total) }} greater than 1000.
- Nothing in the group: check errcode in the WeCom node output. Refer to [Fix group bot failures in Duaer](/troubleshooting/wecom-feishu-bot-webhook-errors.md).
- The store needs HTTPS, and WooCommerce must reach Duaer for the webhook to arrive.
## Questions

### Can Duaer post WooCommerce orders to Feishu or DingTalk instead?

Yes. Swap the WeCom node in the Duaer flow for HTTP Request to that bot webhook URL.

### Why does the Duaer WooCommerce key need Read/Write?

Duaer WooCommerce Trigger registers a webhook in the store, which a read-only key cannot do.

## Related

- [Set up WooCommerce credentials in Duaer](https://doc.duaer.com/integrations/builtin/credentials/woocommerce.md)
- [Send a WeCom message in Duaer](https://doc.duaer.com/build/wecom.md)
- [Fix WeCom and Feishu group bot webhook failures in Duaer](https://doc.duaer.com/troubleshooting/wecom-feishu-bot-webhook-errors.md)

