How to Send WhatsApp Notifications for WooCommerce Orders using WhatsApp Cloud API?

In this article we’ll see how you can send WhatsApp notifications for your WooCommerce orders for any order status like Processing, Completed, Failed etc (including custom order statuses) using WhatsApp Cloud API and WANotifier.

WANotifier is a SaaS tool that lets you use WhatsApp’s official Cloud APIs to send and receive WhatsApp messages. With WANotifier you can:

  1. Send transactional messages for Woocommerce order, Gravity Form & Contact Form 7 submissions and integrate with many more WordPress plugins using webhooks.
  2. Import your contacts and send them bulk WhatsApp marketing messages
  3. Receive responses and chat with people who respond to your WhatsApp messages from WANotifier Inbox page.
  4. And a lot more.

You can learn more about what WANotifier can do by clicking here.

WooCommerce WhatsApp Order Notifications

Integrating WooCommerce with WANotifier to send WhatsApp notifications is easy. Just follow the steps below to get started.

Step 1 – Create your free WANotifier account and setup WhatsApp Cloud API

The first step is to create your free account with WANotifier and generate your WhatsApp Cloud API credentials. Full instructions to do that are given on our documentation page on the link given below.

How to Setup WhatsApp Cloud API with WANotifier? >>

Note that the setup process takes somewhere around 20 to 30 min to complete depending upon your pace.

You need to have a spare phone number available to setup with your WhatsApp Cloud APIs. Along with that you must have a website and be a registered business with some kind of government documents available for business verification.

These requirements are from WhatsApp for them to verify you as a legit business to allow you to use their APIs.

After your WANotifier account is ready with WhatsApp Cloud API setup, you’ll see a dashboard like shown below.

Now you can move to the next step to integrate WooCommerce.

Step 2 – Install WANotifier WordPress Plugin

Download and install our free WordPress plugin on your WordPress website. Our plugin let’s you integrate your WordPress website with WANotifier and let’s you trigger notifications when certain actions are performed on your website.

Step 3 – Connect the WordPress plugin with WANotifier

After you install the WordPress plugin, you’ll see the following screen:

Here you’ll need to enter your API Key. You can get that by logging into your WANotifier account. After you log in, go to the Settings > API Configuration page and scroll down to the bottom. Then copy the API Key and paste it in your WordPress plugin field.

Then click on Submit and validate to establish connection between the plugin and WANotifier.

Step 4 – Create a Trigger in the WordPress plugin

Next step is to create a new trigger for your WooCommerce orders in the plugin. WhatsApp notifications will be fired from your WANotifier account when the respective event is triggered on your WordPress website.

  1. Go to WA Notifier > Add trigger from the WordPress backend menu.
  2. On this page select the Trigger event when you want the notification to be fired. In the dropdown you’ll see all the available triggers for the different WooCommerce events and order statuses.
    • Note that you must have WooCommerce installed in order to see WooCommerce related triggers in the dropdown.
  3. Then enable the Data fields and Recipient fields that you want to send to WANotifier when the triggered event happens. The fields you enable here will be available for you to use when you create notification on WANotifier.
  4. Save this trigger and then Enable it from the right hand side panel.

Step 5 – Create Message Template on WANotifier

Now let’s create a new Message Template on WANotifier. You can think of message templates as email templates that you send to your email subscribers. The only difference is in case of WhatsApp Cloud API is that you need to create and get the templates approved before you can send them to your users.

Click here to create message template that will be sent to your WooCommerce customer when a notification is triggered.

You can create simple static templates or create templates with variables (think of variables as merge tags in emails). The difference here is you add variables like {{1}}, {{2}}, {{3}} and so on in the template in body text and you map these variables with the Data fields you enabled in step #4 above.

Step 6 – Create Notification on WANotifier

Next step is to create a Notification. Think of Notifications as Campaigns. When an event is triggered on your WordPress site, WhatsApp message templates are sent to your customer based on your Notification settings.

  1. Click here to create a new Notification.
  2. In the Trigger dropdown, you will see the trigger that you created in step #4 above. Select the one you want to use.
  3. Then add Recipients to whom you want to send this notification. You will find the Recipient fields here that you enabled during step #4.
  4. Now select the Message Template you created in step #5. If you created this message template with variables, you can map those variables with the available Data fields that you enabled during step #4 from the Assign values to template variables section.
  5. After this is done, click on the Save button to save this notification.

That’s it. Your WhatsApp notification messages will be sent to your customers when the respective Woocommerce event is triggered on your WordPress website!

Get Started with WANotifier for Free Today!