WooCommerce WhatsApp Integration
Send WhatsApp Business messages from your WooCommerce store on every order event — placed, processing, shipped, completed. The Zaptilo WhatsApp API plugs into WordPress hooks with one helper function. Built for Indian D2C brands running WooCommerce who need to reduce COD-RTO and improve customer experience without paying monthly subscription fees.
Why Zaptilo for WooCommerce in India?
- Pay-as-you-go INR pricing — from ₹0.04/message at volume
- COD verification via WhatsApp can cut RTO by 30%+ for Indian D2C stores
- No subscription, no setup fee — pay only for messages sent
- India-based support and GST invoice
- Works on any WooCommerce hosting — no Shopify-style commitment
Step 1: Add the Zaptilo helper
<?php
// Drop into a custom plugin or functions.php
function zaptilo_send_whatsapp($phone, $template, $values) {
$token = 'YOUR_ZAPTILO_API_TOKEN';
$body = [
'phone' => $phone,
'template' => [
'name' => $template,
'language' => ['code' => 'en'],
'components' => [[
'type' => 'body',
'parameters' => array_map(fn($v) => ['type' => 'text', 'text' => $v], $values),
]],
],
];
wp_remote_post('https://web.zaptilo.ai/api/send/template', [
'headers' => ['Authorization' => 'Bearer ' . $token, 'Content-Type' => 'application/json'],
'body' => wp_json_encode($body),
'timeout' => 10,
]);
}Step 2: Hook into WooCommerce order events
// Order placed
add_action('woocommerce_order_status_processing', function ($order_id) {
$order = wc_get_order($order_id);
zaptilo_send_whatsapp(
'91' . $order->get_billing_phone(),
'order_confirmation',
[$order->get_billing_first_name(), $order->get_order_number(), '₹' . $order->get_total()]
);
});
// Order shipped
add_action('woocommerce_order_status_completed', function ($order_id) {
$order = wc_get_order($order_id);
zaptilo_send_whatsapp(
'91' . $order->get_billing_phone(),
'order_shipped',
[$order->get_billing_first_name(), $order->get_order_number()]
);
});Step 3: COD verification (India-critical)
Cash on Delivery orders in India have high return-to-origin (RTO) rates. Send a WhatsApp asking the customer to confirm their COD order — this single change typically reduces RTO by 25-40%:
// COD order verification (Indian D2C critical)
add_action('woocommerce_checkout_order_processed', function ($order_id, $posted_data, $order) {
if ($order->get_payment_method() !== 'cod') return;
zaptilo_send_whatsapp(
'91' . $order->get_billing_phone(),
'cod_verification',
[$order->get_billing_first_name(), $order->get_order_number()]
);
}, 10, 3);Use cases for Indian WooCommerce stores
Order confirmation
Confirm orders the moment they move to processing.
COD verification
Reduce RTO with WhatsApp confirmation for cash-on-delivery orders.
Dispatch alerts
Send tracking updates when status changes to shipped/completed.
Abandoned cart recovery
Trigger via WP-Cron + custom query of abandoned carts.
Review requests
Auto-message 7 days after order completion.
Refund updates
Notify customers when refunds are processed.
Frequently asked questions
How do I send WhatsApp messages from WooCommerce?
Add a small zaptilo_send_whatsapp PHP helper to your theme's functions.php or a custom plugin, then hook into WooCommerce events like woocommerce_order_status_processing, woocommerce_order_status_completed, or woocommerce_checkout_order_processed.
Can WhatsApp confirmation reduce COD return-to-origin (RTO) for Indian WooCommerce stores?
Yes. WhatsApp COD verification typically reduces RTO by 25-40% for Indian D2C stores. The Zaptilo helper hooks into woocommerce_checkout_order_processed and sends a verification message instantly when a COD order is placed.
Do I need a paid WooCommerce extension to integrate Zaptilo?
No. The integration is pure PHP code that works with stock WooCommerce. No premium add-on required.
What is the cost of the WhatsApp Business API for WooCommerce in India?
Zaptilo charges from ₹0.04 per message at volume, billed in INR with GST invoice. There is no monthly subscription, no setup fee — making it the most cost-effective WhatsApp integration for Indian WooCommerce stores.
Cut RTO and grow WooCommerce sales
Free signup. INR pricing. GST invoice. India-based support.
Get Started Free