Connect a WooCommerce store
Send WhatsApp order confirmations and shipping updates from your WooCommerce store.
On this page
When your WooCommerce store is connected, Chatilo sends an approved WhatsApp template when a customer places an order and when the order’s status becomes Completed. WooCommerce tells Chatilo about these events through two webhooks that you add in WordPress.
Abandoned cart reminders are not available for WooCommerce. They work with Shopify only.
Before you start
- You must be a workspace owner or admin.
- Your plan must include store integrations.
- You need at least one approved template. See Create a template.
- You need admin access to your WordPress site.
Step 1: Add the store
- In the sidebar, under Connect, click Store integrations.
- Click Connect a store.
Select WooCommerce and type a Store name.
The name can be used in messages as
{{store_name}}.Click Continue.
The store’s page opens and shows a Webhook address and a Secret. Chatilo creates the secret for you.
Step 2: Add the webhooks in WooCommerce
- In WordPress, open the WooCommerce webhook settings (the page says WooCommerce → Settings → Advanced → Webhooks).
- Create a webhook with the topic
Order created. - Paste the Webhook address from Chatilo as the delivery address, and paste the Secret from Chatilo into the webhook’s Secret field. Use the Copy buttons to avoid typing mistakes.
- Save it, then create a second webhook the same way with the topic
Order updated.
Step 3: Choose what to send
Under 2. Choose what to send there are two events:
| Event | When it is sent |
|---|---|
| Order placed | When a new order is created. |
| Order shipped | When an order’s status becomes Completed. |
- For each event, pick a template in Template, or leave it on Don’t send.
- Fill in the value boxes for the template’s variables with fixed text or these fields:
{{customer_name}},{{first_name}},{{order_number}},{{total}},{{tracking_url}},{{store_name}}. - Keep Send messages for this store ticked and click Save integration.
The customer’s name and phone number are taken from the order’s billing details. {{order_number}} is the order number with a # in front, and {{total}} is the order total with its currency. {{tracking_url}} is filled only when a shipment tracking plugin has saved a tracking link on the order; otherwise it is empty, so do not build a template that depends on it unless you have checked it with a real order. {{checkout_url}} is listed on the page but is never filled for WooCommerce.
What happens next
- Place a test order. It appears under Recent events (the last 25 events) with the result Sent, Failed or Skipped.
- New customers are added to your contacts, and the message appears in a conversation in the inbox.
- Each order is messaged once per event, even if WooCommerce sends the same update again.
To pause, untick Send messages for this store and save. To disconnect, click Remove at the top of the store’s page and delete the two webhooks in WooCommerce too.
Common problems
Nothing appears under Recent events
Check that both webhooks are active in WooCommerce, that the delivery address matches the Webhook address exactly, and that the Secret was pasted into each webhook. Events with a wrong or missing secret are rejected.
"Order shipped" is never sent
It is only sent when the order’s status changes to Completed, and only if the Order updated webhook exists and a template is chosen for Order shipped.
Skipped: "The customer gave no phone number."
The order has no billing phone number. Make the phone field required at checkout.
Skipped: "No template is chosen for this event."
Pick a template for that event and save.
Failed: "The chosen template is missing or not approved."
Choose another approved template. For WhatsApp’s own errors see Messages not sending.