Skip to content
Works with

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.

更新于 2026年11月22日 · 由 Rahil · Markdown

要点一览

TypeThrough the API
DirectionWooCommerce to iChatUp
PlanOrder updates on every iChatUp plan; promotional templates need Marketer
NeedsAccess 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.

常见问题

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.

在您自己的号码上试试

两分钟完成连接,免费试用 7 天,无需信用卡。AI 员工会在顾客已经熟悉的 WhatsApp 号码上回复、预订并跟进。