🛒 WooCommerce Integration

WooCommerce SMS Notifications
– No Plugin Required

Send automatic SMS alerts to customers when orders are placed, shipped, or on hold — using your own Android phone and 30 lines of PHP.

Download App Free View API Docs

What You Can Automate with WooCommerce SMS

Any WooCommerce order status change can trigger an automatic SMS to your customer — instantly.

🛍️ Order Confirmation

Send an SMS the moment a customer places an order: "Your order #1234 has been received. Thank you!"

📦 Shipping Notification

Notify customers when the order is on its way: "Your order has shipped! Tracking: ABC123."

⏳ On-Hold Alert

Let customers know their order is pending: "Your order is on hold pending payment confirmation."

✅ Delivery Confirmation

Close the loop when an order is complete: "Your order has been delivered. We hope you enjoy it!"

❌ Cancellation / Refund

Proactively notify customers about cancellations or refunds — before they contact support.

🔁 Custom Triggers

Trigger SMS on any WooCommerce event: abandoned cart, coupon use, review request, back-in-stock alerts.

🛒 WooCommerce
🐘 PHP
⚡ WordPress hooks
📱 Android SMS
🔔 No plugin needed

Setup in 3 Steps

From zero to sending WooCommerce SMS notifications in under 15 minutes.

  1. 1

    Install SMS Gateway Master & get your API key

    Download SMS Gateway Master from Google Play. Sign in with your Google account. Go to Settings → API Key and copy your unique key. Keep it secret — it authenticates all API calls.

  2. 2

    Add the PHP helper function to your theme's functions.php

    Open wp-content/themes/your-theme/functions.php (or a custom plugin file) and add the function below. Replace YOUR_API_KEY_HERE with your key.

    PHP — Helper Function (functions.php)
    /**
     * SMS Gateway Master — helper function for WooCommerce
     * Docs: https://sms-gateway-ae7e1.web.app/documentation.html
     */
    function sms_gateway_send( string $phone, string $message ): bool {
        $api_key  = 'YOUR_API_KEY_HERE'; // replace with your key
        $endpoint = 'https://us-central1-sms-gateway-ae7e1.cloudfunctions.net/api_sms_send';
    
        $response = wp_remote_post( $endpoint, [
            'headers' => [
                'Content-Type' => 'application/json',
                'X-API-Key'    => $api_key,
            ],
            'body'    => wp_json_encode([
                'phoneNumber' => $phone,
                'message'     => $message,
            ]),
            'timeout' => 10,
        ]);
    
        return ! is_wp_error( $response )
            && 200 === wp_remote_retrieve_response_code( $response );
    }
  3. 3

    Add WooCommerce hooks to send SMS on order events

    Add the hooks below to the same functions.php file. Each hook fires when an order reaches the specified status and sends an SMS to the customer's billing phone number.

    PHP — WooCommerce Order Hooks
    // ── Order placed / processing ──────────────────────────────
    add_action( 'woocommerce_order_status_processing', function( $order_id ) {
        $order = wc_get_order( $order_id );
        $phone = $order->get_billing_phone();
        $name  = $order->get_billing_first_name();
        $total = $order->get_formatted_order_total();
    
        if ( $phone ) {
            sms_gateway_send(
                $phone,
                "Hi {$name}! Your order #{$order_id} ({$total}) has been received. Thank you for shopping with us!"
            );
        }
    });
    
    // ── Order completed / shipped ───────────────────────────────
    add_action( 'woocommerce_order_status_completed', function( $order_id ) {
        $order = wc_get_order( $order_id );
        $phone = $order->get_billing_phone();
        $name  = $order->get_billing_first_name();
    
        if ( $phone ) {
            sms_gateway_send(
                $phone,
                "Hi {$name}! Your order #{$order_id} has been completed/shipped. We hope you enjoy your purchase!"
            );
        }
    });
    
    // ── Order on hold ───────────────────────────────────────────
    add_action( 'woocommerce_order_status_on-hold', function( $order_id ) {
        $order = wc_get_order( $order_id );
        $phone = $order->get_billing_phone();
        $name  = $order->get_billing_first_name();
    
        if ( $phone ) {
            sms_gateway_send(
                $phone,
                "Hi {$name}! Your order #{$order_id} is currently on hold pending payment confirmation. Please contact us if you have questions."
            );
        }
    });
✅ That's it! Place a test order to verify the integration. The SMS should arrive on the customer's phone within seconds. Check the SMS Gateway Master app conversation list to confirm it was sent.

WooCommerce SMS FAQ

Can I send WooCommerce SMS without a plugin?
Yes. Use the PHP helper function and WooCommerce action hooks shown above. No plugin installation required — just 30 lines of PHP added to your theme's functions.php file.
Do I need Twilio to send WooCommerce SMS?
No. SMS Gateway Master is a cheaper alternative — €5/month flat rate vs Twilio's $0.0075/SMS. For a WooCommerce store sending 500 order notifications/month, SMS Gateway Master costs €5 vs ~$3.75 at low volume. But at 2,000+ SMS/month, SMS Gateway Master is significantly cheaper. Plus no account verification, no virtual number costs, and full privacy.
Which WooCommerce order statuses can trigger SMS?
Any status: woocommerce_order_status_pending, woocommerce_order_status_processing, woocommerce_order_status_on-hold, woocommerce_order_status_completed, woocommerce_order_status_cancelled, woocommerce_order_status_refunded, woocommerce_order_status_failed. You can hook into all of them.
How do I get the customer phone number from a WooCommerce order?
Use $order->get_billing_phone(). Make sure customers enter phone in international format during checkout (e.g. +40712345678). You can enforce this with a checkout validation hook or the built-in WooCommerce phone field.
Can I test before subscribing to PRO?
Yes. SMS Gateway Master includes a 7-day free trial with 100 SMS/day — more than enough to test your full WooCommerce SMS integration before any payment.

Ready to Add SMS to Your WooCommerce Store?

7-day free trial. No credit card. Working in under 15 minutes.

Download on Google Play See Pricing