Add advanced filters to execute display options based on certain criteria like WooCommerce order details.
These conditional logic rules are built into YayMail to create separate automations in WooCommerce email builder.
Order conditions
Display a custom email block if order total value is less than or greater than a specified amount.
Product conditions
Show a custom message if purchased products are in a certain category or use a certain coupon.
Customer conditions
Add personalized communication when it meets billing, shipping, payment method information, etc.
YayMail Conditional Logic - Add Visibility for WooCommerce Email Blocks
WooCommerce conditional logic can be used in the email customizer to display content based on certain conditions.
In order to implement them in WooCommerce transactional emails, you can use this YayMail Conditional Logic addon. You’ll be able to show exclusive content when one or many conditions are met.
This YayMail addon helps you show/hide specific email content blocks with these types of WooCommerce conditional logic:
When the order total is less than a specified amount.
When the order total is greater than a specified amount.
When the billing country meets your condition(s).
When the ordered items belong to a specific category.
If the ordered product is a specified product or product SKU.
If the order was placed using a specific payment method.
Great news:
If there are any other particular conditions/rules that are useful for you, feel free to suggest it on YayMail’s feature requests. We can implement it in no time.
Frequently Asked Questions about WooCommerce Conditional Logic in Email
What is conditional content in email marketing?
When it comes to marketing email and transactional email, you should personalize the email template to send the right content to the right customers. With the WooCommerce conditional logic in this YayMail Addon, you can set conditions to show or hide some email content based on your rules.
Can I add if/else statement in WooCommerce email template?
Yes, it’s possible with YayMail Conditional Logic. If the requirements are met, it will automatically show a specific email to your target customers. Otherwise, the content will not be displayed.
How to send a WooCommerce custom email based on a customer’s ordered products?
To set a condition, first, you need to select an email block to apply conditional content. Then, add a new condition among product category, product, or product SKU, and select an operator between “is” and “is not”.