How to Send Custom Email and Slack Notices Based on Events and Conditions with WooCommerce

- written by

Having the ability to send out custom email and Slack notices from a WooCommerce store to a team or key employees can improve the ease and efficiency of running the online store.

Basically it’s an email that goes out to someone on staff about specific orders and the status of those orders. There are so many ways you can use this that the sky is the limit.

And it isn’t just emails. If your team is on Slack, you can fine tune it even more.

The WooCommerce Advanced Notices Plugin Using Conditional Logic

Settings for this plugin can be found after installation, under WooCommerce Settings > Notices.

You can easily toggle your notices off and on and set up debug data.

general settings

Slack Notification Setup

Here is where you set up your notifications if you choose to use Slack. During this setup you can add the name of the bot and choose the channel for the team and the webhook URL. You will be able to set these up also per notice, overriding the global settings and you can test it here.

slack notifications

Creating a New Advanced Notice in WooCommerce


In these same settings, all your advanced notices will be listed. You will also be able to click through and create an unlimited number of notices.

When you add a New Advanced Notice, you are taken to a page to set up the notice and the conditions. First, an editor window lets you set up the email or Slack notification and provides a list of tags you can use to create your notice.

advanced new notice

You can add the recipient emails here. Or as I mentioned before, you can create a custom Slack notice specific to this notice.

add recipient emails

Or as I mentioned before, you can create a custom Slack notice specific to this notice for different channels, etc.

slack for specific notices

And most importantly, now you create the conditions for your custom notice.

add a condition

First, select an event:

add an event to the condition

Now add a condition or a group of conditions. Note that the conditions will vary depending the the event. This one shows the conditions for the event When Order Done.

conditions based on events

The fact that you can add as many events and conditions as you want for any given notice gives you a lot of flexibility.

And for each individual notice, you are able to set a digest for frequency, day of the week and time.

digest for when the notice is sent out

A Couple of Examples

There are tons of variable notices you can create with conditional logic.

For example, maybe there is a reason that if an order on hold exceeds a certain amount or is sent to a specific region, someone on your team needs to be notified.

order on hold based on country and amount

Or perhaps someone in your finance needs to be notified when an order has been refunded to a customer who used PayPal.

refund based on PayPal

These are simple examples but with conditional logic, you can get as detailed as needed.

So if you want to have more control over notices going out internally via WooCommerce, check out the WooCommerce Advanced Notices plugin.

Only the posts on the builder blog here may include affiliate links. If you click on them and make a purchase, I'll get a commission, at no cost to you.