Installation
- Log in to your WordPress dashboard
- Navigate to Plugins → Add New
- Click the Upload Plugin button
- Choose the plugin zip file and click Install Now
- After installation, click Activate
Initial Setup
After activation, you’ll find SMS Notifications in your WooCommerce settings:
- Go to WooCommerce → Settings
- Click the SMS Notifications tab
- Enable the plugin using the main toggle switch
- 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:
- Sign up for a Twilio account
- From your Twilio Dashboard, locate:
- Account SID
- Auth Token
- Twilio Phone Number
- 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:
- Go to SMS Notifications → Settings
- Save your Twilio credentials
- Create a test order in WooCommerce
- Check that notifications are received
- 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:
- Check WooCommerce → Status → Logs
- Look for entries from ‘wc-sms-notifications’
- 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.