How to send condition-based emails for WooCommerce

By August 20, 2019How to guides

As a store owner, you know the importance of automating emails so that you don’t have to spend time manually writing your customers. There might be a time when you need to send emails when orders meet certain conditions. As an example, imagine the following scenarios:

  • You are sending a “how to use” manual to your customers after they purchase a product, however you need to send the email in different languages depending on the country.
  • You need to give more information to customers who purchased via Cash on Delivery.
  • You have to inform international customers who purchased a certain product that the shipping might experience a delay.
  • You want to send a reminder to customers who purchased consumable products before they run out of product.
  • You want to send an up sell and/or cross sell to customers who purchased a certain product and opted-in to be in you mailing list at checkout.
  • You want to send email notifications to a business partner when certain products have been purchased.

Those are just a few scenarios, but there are innumerable situations where you can benefit from automatically sending emails to customers/partners when the order meet a certain criteria. So how do you go about doing this? Let’s review the options.

WooCommerce conditional emails with code

Depending on the complexity of the filter you are trying to achieve for sending emails, this might be a viable solution for you. Custom WooCommerce functions like sending an email when a criteria is met can be done via hooks. These can be added to the functions.php file of your theme.

Unfortunately, this is not the best solution for most users. It requires an advanced level of technical expertise that most people don’t have. Even if you decided to outsource this and have someone else fine tune it for you, it might become an expensive solution if later on you need to make tweaks here and there.

For example, if you wanted to achieve the last point of the previous list, you would have to do quite a bit of hacking. You can find a tutorial for doing so here.

WooCommerce conditional emails with plugins

SIP advanced email rules for WooCommerce

If you are looking for a flexible, reliable and easy to use way to set up email conditionals based on a wide range of parameters, then check out SIP advanced emails rules for WooCommerce.