SMSTunnel for WooCommerce

By nicunarcisbodea

0+ active installationsVersion 1.0.5

Send WooCommerce order notifications by SMS from your own Android phone and number, via SMSTunnel. App on Google Play.

Description

Get the SMSTunnel app on Google Play

SMSTunnel for WooCommerce extends the SMSTunnel plugin with WooCommerce-specific features. Send SMS notifications to customers when they place an order and when its status changes, and get an SMS for each new order.

The texts are sent from your own Android phone and number, so customers see a number they can reply to. You link the phone to your site by QR code in the main SMSTunnel plugin, and you can remove that connection anytime from the SMSTunnel app.

End-to-end encryption. Turn it on in the SMSTunnel plugin and these texts are encrypted for your phone before they leave WordPress, so only your phone can read the words. After your phone sends it, a text travels over the mobile network like any other SMS.

Requires SMSTunnel Plugin

This addon requires the main SMSTunnel plugin to be installed and configured first.

Key Features

  • One Text at Checkout – The customer gets one text when they place an order, with the classic checkout or the Checkout block: the “Order Processing” text when the order is paid or cash on delivery, or the new order text while it still waits for payment
  • Order Status Notifications – Automatically send SMS when an order becomes Processing, Completed, On Hold, Cancelled or Refunded
  • Admin Alerts – Get an SMS on your “Admin Phone Number” for each new order
  • Shipment Tracking – Text the tracking number when you add one with the Advanced Shipment Tracking plugin
  • Custom Messages – Define your own message templates with order placeholders
  • Low Stock Alerts – Receive SMS when product stock is running low or out of stock
  • WooCommerce Settings Tab – All settings conveniently in WooCommerce > Settings > SMS
  • HPOS Compatible – Works with WooCommerce High-Performance Order Storage

Message Placeholders

Use these placeholders in your message templates:

  • {order_id} – Order number
  • {order_status} – Current order status
  • {order_total} – Order total amount
  • {customer_name} – Customer’s full name
  • {customer_first_name} – Customer’s first name
  • {site_name} – Your website name
  • {tracking_number} – Tracking number (Tracking Message only)
  • {tracking_provider} – Shipping company (Tracking Message only)

When Texts Are Sent

  • New Order (Pending) – once per order, when the customer places it (classic checkout or Checkout block) or an order moves to Pending payment, if the order still waits for payment at the end of that step, for example while the customer pays on another site. An order paid at checkout or with cash on delivery is Processing by then and gets that text instead. An order you create in the admin as Pending payment doesn’t get it.
  • Notify Admin on New Order – once for each order placed at checkout (classic checkout or Checkout block), when an “Admin Phone Number” is set. It doesn’t depend on the customer’s texts or on the customer giving a phone number.
  • Processing, Completed, On Hold, Cancelled, Refunded – each time an order moves to that status.
  • Shipment Tracking – when a tracking number is added with the free Advanced Shipment Tracking plugin, once per tracking number. Other tracking plugins don’t tell other plugins when they add a number, so they are not supported. Developers can send it from their own code with do_action( 'woocommerce_shipment_tracking_number_added', $order_id, $tracking_number, $tracking_provider ).

Until you save WooCommerce > Settings > SMS for the first time, the plugin sends what the tab shows: the statuses ticked there and the default texts.

Customer texts go to the order’s billing phone, so ask for it in international format (+ and the country code) at checkout.

Admin Features

  • Send SMS to customers directly from the order page
  • View SMS history in the order notes
  • Manual SMS button on each order

External Services

This plugin relies on the SMSTunnel service to deliver SMS messages. When an order is placed, its status changes, a tracking number is added or an admin sends an SMS, the recipient phone number and message content are transmitted to the SMSTunnel API.

  • Service: SMSTunnel.io (NARBOWEB SRL)
  • Service URL: https://smstunnel.io
  • Data sent: Phone number, SMS message content, order metadata
  • Privacy Policy: https://smstunnel.io/privacy
  • Terms of Service: https://smstunnel.io/terms

Installation

Requirements

  • WordPress 5.0 or higher
  • WooCommerce 5.0 or higher
  • PHP 7.4 or higher
  • SMSTunnel plugin (main plugin) must be installed and configured
  • SMSTunnel app on your Android phone, from Google Play: https://play.google.com/store/apps/details?id=io.smstunnel.app

Automatic Installation

  1. Ensure SMSTunnel main plugin is installed and connected to your phone
  2. Go to Plugins > Add New in your WordPress admin
  3. Search for “SMSTunnel for WooCommerce”
  4. Click “Install Now” and then “Activate”

Manual Installation

  1. Download the plugin zip file
  2. Go to Plugins > Add New > Upload Plugin
  3. Upload the zip file and click “Install Now”
  4. Activate the plugin

Configuration

  1. Go to WooCommerce > Settings > SMS
  2. Enable the notifications you want to send
  3. Customize message templates as needed
  4. Set your admin phone number for new order alerts

FAQ

Do I need the main SMSTunnel plugin?

Yes, this is an addon that requires the SMSTunnel main plugin to be installed and configured with your Android phone.

Can I customize the SMS messages?

Yes! Each notification type has its own message template that you can customize. Use placeholders like {order_id} and {customer_name} to personalize messages.

Which phone number is used for customers?

The plugin uses the billing phone number from the WooCommerce order. Make sure customers provide valid phone numbers at checkout.

Can I send SMS manually from an order?

Yes, there’s a “Send SMS” meta box on each order page where you can compose and send a custom message to the customer.

Is it compatible with HPOS?

Yes, the plugin is fully compatible with WooCommerce High-Performance Order Storage (HPOS).

Does it work with subscription orders?

The status texts work with any WooCommerce order status change, including those from subscription plugins.

Does it add SMS codes to the WooCommerce login?

Not this add-on. The main SMSTunnel plugin does: turn on “WordPress Login 2FA” in SMSTunnel > Settings and it also covers the My Account login.

Screenshots

Changelog

1.0.5

  • Fixed: Texts went out only after WooCommerce > Settings > SMS had been saved once. Now the plugin sends what the tab shows from the start: the ticked statuses and the default texts.
  • Fixed: One text when a customer places an order. With cash on delivery or a payment made at checkout, the Checkout block sent both the “New Order (Pending)” and the “Order Processing” text; now only “Order Processing” goes out. An order that still waits for payment gets the new order text, once.
  • Fixed: “New Order (Pending)” and “Notify Admin on New Order” now also work with the classic checkout.
  • Fixed: “Notify Admin on New Order” goes out once for each new order, even when the customer’s new order text is off or the customer gave no phone number.
  • Fixed: “Shipment Tracking” now works with the Advanced Shipment Tracking plugin, once per tracking number. Before, it waited for an action no tracking plugin sends.
  • Removed: The “Enable WooCommerce 2FA” checkbox, which did nothing. For sign-in codes on the My Account login, use “WordPress Login 2FA” in the main SMSTunnel plugin.
  • Fixed: The “Send SMS” box on the order page has its own request, so it no longer depends on the order in which plugins load.
  • Fixed: No empty text is sent when the “Admin New Order Message” or “Tracking Message” is blank.

1.0.4

  • Added: The official Google Play badge for the SMSTunnel app, on the WooCommerce > Settings > SMS tab, in the notice shown when the SMSTunnel plugin is missing, and in this plugin’s row on the Plugins page.
  • Changed: The plugin description now links to the app on Google Play and explains the optional end-to-end encryption.

1.0.3

  • Moved admin JavaScript from assets/js/ to js/ folder (assets/ is reserved for WordPress.org directory assets)

1.0.2

  • Added load_plugin_textdomain for proper internationalization
  • Added External Services disclosure for WordPress.org compliance
  • Fixed uninstall cleanup to delete correct option keys
  • Fixed .html() XSS in admin JS – now uses .text()
  • Added return after wp_send_json_error permission checks
  • Regenerated .pot translation file

1.0.1

  • Security: Moved inline JavaScript to external file for WordPress.org compliance
  • Code: Using wp_localize_script instead of wp_add_inline_script

1.0.0

  • Initial release
  • Order status change notifications
  • Customer SMS notifications
  • Admin new order alerts
  • Low stock notifications
  • Custom message templates with placeholders
  • Send SMS from order page
  • HPOS compatibility