The ability to add if/else statements in the email content to define what appears. Should work with custom variables.
Use case example -> a bookable activity which could be multiple days or only one day:
{% if order.start_date == order.end_date %}
Date: {{ order.start_date }}
{% else %}
Start date: {{ order.start_date }}
End date: {{ order.end_date }}
{% endif %}
Use case 2 -> additional resources sent to customers booking an activity in their own/a different country
{% if customer.billing_address.country =! product.country %}
See these useful resources for your trip to {{ product.country }}!
Visa rules and entry requirements (link)
Great places to visit in… (link)
{% elseif customer.billing_address.country == product.country %}
Domestic tourism rules!
{% endif %}
Open
Last updated: January 16, 2024
Log in to comment on this feature request.
This would be a really useful enhancement for AutomateWoo. Native if/else logic with support for custom variables would make email templates much more flexible, especially for bookings, travel, and personalized customer messaging. It could eliminate the need for multiple workflows while keeping emails clean and relevant. Interestingly, the idea of smarter conditional content reminds me of how platforms like cinehd tailor what users see based on context, making the overall experience feel more personalized.
hello woocommerce members, I had a good experience with Uno Online – a wonderful card game
YES! I’d use this to customize order emails that are for digital vs. physical goods.
So weird that this isn’t part of the functionality out of the box!