WooCommerce Twilio SMS Notifications
WooCommerce Twilio SMS Notifications lets you send automatic SMS updates to customers when their order status changes. This extension also allows site administrators to receive an SMS notification when a new order is placed and manually send SMS messages through the Edit Order screen.
- Installation and setup
- Extension settings
- Firebase Dynamic Links
- Message variables
- Return SMS setup
Installation and setup
- Sign in to WordPress.
- From the left-hand menu, go to WooCommerce and click on Extensions.
- From the GoDaddy Included Extensions list, scroll to WooCommerce Twilio SMS Notifications and click on Install.
Finding your Twilio credentials
First, you'll need your Twilio credentials to connect your store:
- Log into your Twilio console.
- Copy your Account SID and Auth Token.
- Select the Phone Numbers tab in the menu and copy the phone number as well.
- In WordPress, go to WooCommerce and click on Settings.
- Refer to the SMS tab and scroll down to Connection Settings.
- Enter the Account SID and Auth Token you copied.
- Click on Save changes.
That's it! You are now sending SMS updates! If you want to tweak settings and customize the SMS messages that are sent, continue reading.
Now you can configure the plugin by going to WooCommerce > Settings > SMS.
- Opt-in Checkbox Label: The text displayed for the opt-in checkbox at checkout.
Note: Leaving this field blank will disable the opt-in checkbox and all customers will receive SMS updates.
- Opt-in Checkbox Default: The default state for the opt-in checkbox. We recommended leaving this set to Unchecked.
- Concatenate Messages: Enable to let the carrier split a long message into multiple SMS messages if the total character count is beyond the limits of a single SMS. If disabled, long messages may be cut off with an ellipsis (...) at the end.
- Shorten URLs: Enable to automatically shorten links in SMS notifications.
Note: Refer to the Firebase instructions below for detailed steps.
- URL Shortener Service: Sign up for Firebase Dynamic Links API to short URLs.
- Firebase Web API Key: Your Firebase project API key.
- Firebase Dynamic Links Domain: Enter your custom Firebase subdomain without prepending a protocol (http:// or https://).
- Enable new order SMS admin notifications: Enabling sends SMS notifications to the admin mobile number.
- Admin Mobile Number: The number(s) new order notifications will be sent to. Include the country code for numbers outside the US and send notifications to multiple numbers by separating them with a comma.
- Admin SMS Message: Customize the new order notification that is sent to admins. You can include any of the message variables listed below to include additional information.
- Order statuses to send SMS notifications for: SMS updates will be sent when an order changes to the statuses that you add here.
- Default Customer SMS Message: The message template used when no customized template exists for a given status.
Status SMS message templates
Add a custom SMS message for each status template or leave blank to use the default message you set above. All core statuses and any custom statuses created with Order Status Manager will appear here to customize.
Return SMS message
- Enable return SMS message: Enabling will send customized return messages when customers reply to your automated SMS.
- Response Message: The custom response that is sent to customers (under 160 characters). Leaving this blank will store response messages in your Twilio account without sending.
Sender ID settings
- Enable Sender ID: Enable to set your own business brand as the Sender ID when sending one-way messages.
Note: This is only supported for certain countries.
- Sender ID: Enter your preferred alphanumeric sender ID.
Follow the instructions above to get your Twilio credentials for this section.
- Account SID: Found in your Twilio account console.
- Auth Token: Found in your Twilio account console.
- From Number: The number your SMS messages are sent from. You may enter any purchased number here (even a shortcode).
Note: If you have not purchased Twilio Credit, you will only be able to send SMS messages to your verified sandbox number.
- Log Errors: Logs errors to the PHP error log. Errors sending SMS messages to customers are logged as Order Notes regardless of this setting.
Note: For best performance, refrain from enabling this unless you're experience issues with the plugin.
Send test SMS
- Enter a Mobile Number. If you're using a trial Twilio account, the number must already be verified in your account.
- Create a test Message of 160 characters or less.
Note: Message variables will not be replaced in a test message since they have no data.
- Click Send.
Firebase Dynamic Links
Use the steps below to generate an API key from Firebase, which you can enter in the general settings to setup URL shortening. This replaces all links to your site with shortened URLs in SMS messages.
- Sign in to Google, then go to Firebase.
- Click on Visit Console.
- Select Add project.
- Enter the name of your project, such as "Twilio URL Shortener", and click Continue.
- Proceed through any additional configuration steps and click Create project.
- With your project now created, click Continue to navigate to the project page.
- Click the settings wheel icon and select Project settings.
- Copy the Project ID and the Web API Key to enter in the plugin settings.
Dynamically add order information to your SMS messages using the variables below. These work for both customer and admin messages. See below if you want to add your own variables.
%shop_name%- Your site name
%order_id%- Order number
%order_count%- Total number of orders the customer has placed
%order_amount%- Total amount of the order
%order_status%- Current status of the order
%billing_name%- Full customer name from the billing information
%billing_first%- Customer first name from the billing information
%billing_last%- Customer last name from the billing information
%shipping_name%- Name used in the shipping information
%shipping_method%- Shipping method for the order
Return SMS setup
When a customer replies to an SMS, Twilio will respond by default with a generic message that looks something like this:
Thanks for the message. Configure your number's SMS URL to change this message. Reply HELP for help. Reply STOP to unsubscribe. Msg & Data rates may apply.
Create a customized response message instead by enabling the Return SMS Message setting and following the steps below in your Twilio account:
- Sign in to Twilio and navigate to the Phone Numbers page.
- Select the phone number where you want to receive SMS.
- Refer to Messaging and paste the URL from the Return SMS Message settings into the A message comes in field.
Once set, your customers will now receive the custom response when replying to your store SMS notifications.Back To Top
- Refer to the WooCommerce documentation for troubleshooting steps and answers to common questions.