To use Messagebird with WPNotif on WordPress you can either simply add an SMS template in our template settings just the same way you would do it for other gateways.
But if you are planning to use Messagebird for both WhatsApp and SMS then in that case you will need to define different templates for both of those channels as required by Messabird.
Below is an example a template which you can refer to create your own
##SMS## Your order {{wc-order}} is shipped on {{date}} ##WHATSAPP## template-name => order-shipped namespace => 32995840_dfdb_45b5_91c3_41tyh5fe7a84 language => en 1 => {{wc-order}} 2 => {{date}}
Here is a breakdown of the above template
##SMS## and ##WHATSAPP## are used to define the channels. To make sure this template works, you need to add both of these headers but you can leave any of those empty to not trigger that particular one (example provided below)
template-name – is the name you define in your Messagebird panel
namespace – this value is provided by Messagebird and is generally unique to your account
1: 2: – these are the series of variables you define in your Messagbird WhatsApp template
So if your template for WhatsApp in messagebird is
Hi, your order {{1}} has been shipped on {{2}}
Your template on WPNotif should look similar to
##SMS## Your order {{wc-order}} is shipped on {{date}} ##WHATSAPP## template-name => (the template name you define on Messagebird) namespace => (this value is provided by Messagebird) language => en 1 => {{wc-order}} 2 => {{date}}
NOTE: You can have your SMS template as you like, no need for it to be similar to your WhatsApp template.
Just want to use WhatsApp?
If you just want to use WhatsApp then you still need to define ##SMS## header but you can keep the value in it to be emtpy
##SMS## ##WHATSAPP## template-name => (the template name you define on Messagebird) namespace => (this value is provided by Messagebird) language => en 1 => {{wc-order}} 2 => {{date}}
Just want to use SMS?
If you just want to use SMS then there is no need to define the template in the above variable manner, you can simply use
Your order {{wc-order}} is shipped on {{date}}