Using iChatUp with WooCommerce
There is no native iChatUp plugin for WooCommerce. The direct route is a few lines of code on your WordPress site: when an order moves to “processing”, WordPress makes an HTTP request to the iChatUp messages endpoint with your API key, and the buyer receives an approved order template on WhatsApp. An automation tool can do the same without code.
Sepintas lalu
| Type | Through the API |
|---|---|
| Direction | WooCommerce to iChatUp |
| Plan | Order updates on every iChatUp plan; promotional templates need Marketer |
| Needs | Access to add a code snippet; the official WhatsApp connection; an approved template |
Worked example: a snippet for the processing status
Add this with a code-snippets plugin or in a small custom plugin. It uses WordPress’s own HTTP functions and the order’s billing details.
add_action("woocommerce_order_status_processing", function ($order_id) {
$order = wc_get_order($order_id);
wp_remote_post("https://ichatup.com/api/v1/messages", [
"timeout" => 15,
"headers" => [
"Authorization" => "Bearer YOUR_API_KEY",
"Content-Type" => "application/json",
"Accept" => "application/json",
"Idempotency-Key" => "woo-order-" . $order_id,
],
"body" => wp_json_encode([
"phone" => $order->get_billing_phone(),
"template" => "order_received",
"variables" => [$order->get_billing_first_name(), $order->get_order_number()],
]),
]);
});
Why the snippet, not a WooCommerce webhook
WooCommerce’s built-in webhooks (Settings, Advanced, Webhooks) post WooCommerce’s own order JSON and cannot add your Authorization header, so iChatUp would refuse them. The snippet sends exactly the body the API expects. The Idempotency-Key means that if the status hook fires twice for the same order, the customer still gets one message.
Keep the key safe
Store the key in a constant in wp-config.php rather than in the database or a theme file that others edit. Anyone holding it can message your customers. For a second status, such as completed, hook woocommerce_order_status_completed and send a different approved template. Full request rules are in the messages endpoint.
Soalan lazim
What if the billing phone has no country code?
iChatUp adds your account’s default country code. Ask for the full international number at checkout if you sell abroad.
Does iChatUp read my WooCommerce products?
No. The connection only sends messages. For product answers, keep a product list in a connected Google Sheet.
Cuba pada nombor anda sendiri
Dua minit untuk sambung, 7 hari percuma, tanpa kad. Pekerja AI anda menjawab, membuat tempahan dan membuat susulan di nombor WhatsApp yang sudah digunakan pelanggan anda.