WooCommerce SMS Notifications

Documentation

Installation

  1. Log in to your WordPress dashboard
  2. Navigate to Plugins → Add New
  3. Click the Upload Plugin button
  4. Choose the plugin zip file and click Install Now
  5. After installation, click Activate

Initial Setup

After activation, you’ll find SMS Notifications in your WooCommerce settings:

  1. Go to WooCommerce → Settings
  2. Click the SMS Notifications tab
  3. Enable the plugin using the main toggle switch
  4. Enter your admin phone number in international format (e.g., +1234567890)

Configuring Twilio

You’ll need a Twilio account to send SMS messages. Here’s how to get your credentials:

  1. Sign up for a Twilio account
  2. From your Twilio Dashboard, locate:
    • Account SID
    • Auth Token
    • Twilio Phone Number
  3. Enter these credentials in the plugin’s settings page

Plugin Settings

The plugin settings are divided into two main sections:

General Settings

  • Enable/Disable: Master switch for all SMS notifications
  • Account SID: Your Twilio Account SID
  • Auth Token: Your Twilio Auth Token
  • From Number: Your Twilio phone number
  • Admin Phone: Phone number for admin notifications

Message Templates

Each notification type can be individually configured:

  • New Order
  • Cancelled Order
  • Failed Order
  • Order On-Hold
  • Processing Order
  • Completed Order
  • Refunded Order

For each template, you can:

  • Enable/disable the notification
  • Customize the message text
  • Choose recipients (admin, customer, or both)

Available Variables

Use these variables in your message templates:

  • {order_id}: The order number
  • {customer_name}: Customer’s full name
  • {order_total}: Order total amount
  • {order_status}: Current order status
  • {site_title}: Your website name
  • {site_url}: Your website URL

Testing

To test your setup:

  1. Go to SMS Notifications → Settings
  2. Save your Twilio credentials
  3. Create a test order in WooCommerce
  4. Check that notifications are received
  5. Update the order status to test different notifications

Troubleshooting

Common issues and solutions:

Messages Not Sending

  • Verify Twilio credentials are correct
  • Ensure phone numbers are in international format (+1234567890)
  • Check that the notification type is enabled
  • Verify the template has content
  • Check WooCommerce logs for error messages

Invalid Phone Numbers

  • Always use international format (+1234567890)
  • Remove any spaces or special characters
  • Include the country code

Error Messages

If you see error messages:

  1. Check WooCommerce → Status → Logs
  2. Look for entries from ‘wc-sms-notifications’
  3. Match error codes with Twilio’s documentation

FAQs

Q: How much does it cost to send SMS messages? A: SMS costs are determined by your Twilio account and vary by country. Check Twilio’s pricing page for details.

Q: Can I send SMS to international numbers? A: Yes, as long as you have the correct international phone number format and appropriate Twilio credentials.

Q: Will customers receive SMS in their local time zone? A: SMS messages are sent immediately when order status changes, based on your server’s time zone.

Q: Can I customize which notifications customers receive? A: Yes, each notification type can be enabled/disabled individually for both admin and customers.

Q: Is there a limit to message length? A: SMS messages are limited to 160 characters. Longer messages may be split into multiple SMS.

Q: How do I know if a message failed to send? A: Failed messages are logged in WooCommerce → Status → Logs. You can review these logs for any issues.

Shopping Cart
Scroll to Top