π±WhatsApp & SMS Notifications
Send WhatsApp or SMS notifications for order events, abandoned carts, and more.
π Overview
Flow:
Admin configures gateway URLs in Settings.
Admin creates notification templates in Products β Notifications (or similar).
When triggers fire (e.g., order placed, invoice paid, abandoned cart), the module sends a request to the gateway.
The gateway delivers the message via WhatsApp or SMS.
βοΈ Configuration
Gateway URLs
Go to Setup β Settings β Products.
Under WhatsApp / SMS Notifications:
Enable the feature.
Enter SMS Gateway URL β Your SMS provider's webhook/API endpoint.
Enter WhatsApp Gateway URL β Your WhatsApp provider's webhook/API endpoint.
Save.
Per-Template Override π§
Each notification template can use the global gateway or a custom webhook URL.
β Creating a Notification Template
Go to Products β Notifications (or Product Notifications).
Click New Notification.
Configure:
Name
Internal name
Channel
WhatsApp or SMS
Trigger
abandoned_cart, order_placed, order_paid
Recipient
client or staff
Message template
Text with merge fields
Webhook URL
Override global (optional)
Webhook method
POST or GET
Webhook body
JSON template for the API
Save.
π Merge Fields
Use these placeholders in the message template:
{companyname}
Your company name
{cart_link}
Link to checkout
{cart_total}
Cart total (abandoned cart)
{client_name}
Customer name
{contact_phonenumber}
Phone number
{order_id}
Order ID
{order_date}
Order date
{total}
Order total
{invoice_number}
Invoice number
{invoice_link}
Link to invoice
Trigger Events
abandoned_cart β When cron sends abandoned cart reminders.
order_placed β When an order/invoice is created.
order_paid β When an invoice is marked as paid.
π¦ Webhook Body
The default body format is often:
The {message} placeholder is replaced with the rendered message (JSON-encoded). Adjust the body template to match your gateway's API requirements.
Last updated