WooCommerce Integration
E-commerce SMS notifications for your online store
What is WooCommerce?
WooCommerce is the world's most popular open-source e-commerce platform, built on WordPress. Powering over 5 million online stores worldwide, WooCommerce provides everything you need to sell products and services online, from payment processing to inventory management.
With its extensive plugin ecosystem and customisation options, WooCommerce is the platform of choice for New Zealand businesses of all sizes, from small boutiques to large retailers.
SMS Notifications with WooCommerce
Keep your customers informed at every stage of their order journey with SMS notifications. From order confirmation to delivery updates, text messages provide instant communication that customers actually read.
With a 98% open rate, SMS ensures your customers never miss important order updates. Reduce support enquiries, improve customer satisfaction, and build loyalty with timely, relevant order notifications.
Key Benefits
Order Confirmations
Instantly confirm orders via SMS so customers know their purchase was successful.
Shipping Updates
Notify customers when orders ship with tracking information and delivery estimates.
Abandoned Cart Recovery
Recover lost sales by reminding customers about items left in their cart.
Customer Engagement
Build relationships with personalised SMS messages and promotional offers.
Easy Integration
Simple PHP code snippet that hooks directly into WooCommerce order events.
NZ Network
Direct connections to New Zealand mobile networks for reliable, fast delivery.
Setup Instructions
Step 1: Download the Code Snippet
Download our pre-built WooCommerce integration code. This PHP file hooks into WooCommerce order events and sends SMS notifications via the WebSMS API.
Download Code Snippet (PHP)Step 2: Configure Your Credentials
- Open the downloaded PHP file in a text editor
- Replace
your-email@example.comwith your WebSMS email address - Replace
your-passwordwith your WebSMS password - Optionally customise the SMS message templates
Step 3: Add to Your WordPress Site
Choose one of these methods to add the code to your site:
Option A: Child Theme (Recommended)
- Copy the code to your child theme's
functions.phpfile - Save the file and upload to your server
Option B: Code Snippets Plugin
- Install the Code Snippets plugin from WordPress
- Go to Snippets → Add New
- Paste the code and save
Option C: Custom Plugin
- Create a new folder in
/wp-content/plugins/calledwebsms-woocommerce - Save the snippet as
websms-woocommerce.phpin that folder - Activate the plugin in WordPress admin
Step 4: Test the Integration
- Place a test order on your WooCommerce store
- Verify you receive an SMS confirmation
- Update the order status to test shipping notifications
- Check the order notes in WooCommerce for SMS delivery status
Available Order Status Hooks
The code snippet supports these WooCommerce order events:
- Order Placed - Triggered when a new order is created
- Order Processing - When payment is received and order is being prepared
- Order Shipped - When the order is dispatched for delivery
- Order Completed - When the order is marked as delivered/complete
Common Use Cases
Order Confirmations
Instantly confirm orders with order number and total, giving customers peace of mind.
Shipping Notifications
Alert customers when their order ships with tracking details and estimated delivery.
Delivery Updates
Notify customers when their order has been delivered or is ready for pickup.
Back in Stock Alerts
Notify customers when previously out-of-stock items become available again.
Review Requests
Follow up after delivery to request product reviews and feedback.
Abandoned Cart Recovery
Recover lost sales by reminding customers about items they left behind.
Ready to Add SMS to WooCommerce?
Sign up for a WebSMS account and start sending order notifications via SMS. Pay only for the messages you send.
Related Use Cases
Other ways e-commerce businesses use SMS