Wazzn
    HomeBlogHelp Center
    Back
    WooCommerce + WhatsApp: Complete Automation Setup Guide

    WooCommerce + WhatsApp: Complete Automation Setup Guide

    October 28, 2024

    WooCommerce powers a large share of e-commerce in MENA — particularly for brands that want the flexibility of a self-hosted solution or are running on local hosting providers. Connecting WhatsApp Business API to WooCommerce is technically more involved than Shopify, but entirely manageable — and the revenue impact is the same.

    This guide covers both plugin-based and custom integration approaches.

    The Two Paths to WooCommerce + WhatsApp

    Path 1: WhatsApp BSP Plugin

    Several WhatsApp BSPs offer WooCommerce plugins that handle the integration without custom code. You install the plugin, connect your WhatsApp account credentials, and configure your automations through the BSP's dashboard.

    When to choose this path:

    • You do not have a dedicated developer
    • You want to go live in days, not weeks
    • You are comfortable with the BSP's feature set

    What to look for in a plugin:

    • WooCommerce order hooks (order created, order status changed, order shipped)
    • Cart abandonment capture (requires handling WooCommerce cart data carefully — see below)
    • Opt-in collection at checkout
    • Template management within the dashboard

    Path 2: Custom Integration via WooCommerce Hooks + WhatsApp Cloud API

    For technical teams, WooCommerce's action/filter system gives you hooks into every order event. You write custom PHP (or use a middleware service) to trigger WhatsApp API calls based on these events.

    Key WooCommerce hooks to know:

    • woocommerce_checkout_order_created — new order created
    • woocommerce_order_status_changed — order status update (processing → completed, etc.)
    • woocommerce_new_customer_note — customer note added
    • wc_reduce_stock_levels — stock reduced on purchase

    This approach requires a developer but gives you complete control over logic and costs.

    The Cart Abandonment Challenge in WooCommerce

    Cart abandonment tracking in WooCommerce is trickier than in Shopify because WooCommerce does not natively track abandoned carts with email/phone data unless the user has logged in or has started a checkout.

    The practical solution:

    1. Capture opt-in early: Use a popup or slide-in to collect WhatsApp opt-ins before the customer adds to cart. When they abandon, you already have their number.

    2. Checkpoint opt-in during checkout: When a customer reaches the checkout page and enters their email and phone number, save this data even before order submission. WooCommerce AJAX calls fire when fields are filled — a custom hook can capture this.

    3. Use a dedicated abandonment plugin: Tools like CartFlows or WooCommerce Cart Abandonment Recovery can capture partial checkout data and trigger your WhatsApp BSP via webhooks.

    The key: your opt-in collection needs to happen before the cart is abandoned, not at the point of abandonment.

    Setting Up Order Notifications

    This is the most straightforward integration. Here is the flow:

    1. Customer places order → WooCommerce fires woocommerce_checkout_order_created
    2. Your integration (plugin or custom code) sends the order data to your WhatsApp BSP
    3. BSP sends the order confirmation template to the customer's WhatsApp number

    For shipping notifications, you need WooCommerce to fire a hook when a tracking number is added. If you use a WooCommerce-compatible shipping plugin (Aramex, DHL, local courier integration), these typically fire woocommerce_order_status_changed when status moves to "Shipped."

    Important: Make sure your checkout collects the WhatsApp phone number (can be the same as the billing phone) and stores the opt-in consent. In WooCommerce, you can add custom checkout fields using WooCommerce's built-in field system or a plugin like WooCommerce Checkout Fields Editor.

    Opt-in Collection at WooCommerce Checkout

    Add a WhatsApp consent checkbox to your checkout using woocommerce_after_checkout_billing_form or woocommerce_review_order_before_submit:

    The checkbox should:

    • Be unchecked by default
    • Clearly state what the customer is subscribing to
    • Save the consent status to the order meta

    Store the consent record including: customer ID, timestamp, source (checkout), and whether the checkbox was checked.

    WhatsApp Support Inbox for WooCommerce

    Beyond automations, your WhatsApp platform's shared inbox should display WooCommerce order data alongside each conversation. This means agents can see:

    • Customer's order history
    • Current order status
    • Payment status
    • Shipping information

    This context transforms support from generic to specific. An agent who can see "this customer placed order #1234 and it's been in processing for 3 days" can address the problem immediately rather than asking the customer to provide their order number.

    Recommended WooCommerce + WhatsApp Tech Stack

    For most WooCommerce brands in MENA, a practical stack looks like:

    • WooCommerce with the standard checkout + phone field made required
    • WhatsApp BSP with a native WooCommerce plugin (look for one with Arabic language support for MENA)
    • A checkout opt-in checkbox (using WooCommerce's custom field hooks or a plugin)
    • A pre-checkout opt-in popup for cart abandonment capture

    This stack, properly configured, delivers the same automation capability as a Shopify integration — just with slightly more setup time.

    Expected Results for WooCommerce Merchants

    Brands that implement a complete WooCommerce + WhatsApp integration typically see:

    • Cart recovery rate: 12–30% (slightly lower than Shopify due to imperfect abandonment capture — improve this over time by optimizing opt-in placement)
    • Support ticket volume reduction: 30–35%
    • Review collection: 20–30% of post-purchase requests
    • Revenue attribution: 8–15% of store revenue within 90 days

    The WooCommerce setup takes longer than Shopify (expect 2–4 weeks for a plugin-based integration, longer for custom), but once live, the performance is comparable.

    ← Back

    Building better WhatsApp integrations

    Resources

    BlogHelp Center

    Company

    AboutPrivacy PolicyTerms of Service