by Mihai Joldis on WordPress.org
** Conditional Email Tags for Easy Digital Downloads ** lets you add smart, dynamic content to your EDD email templates using simple {if ...}{/if} tags. Personalize your customer emails based on payment gateway, order amount, user role, and more!
Examples:
– {if gateway="stripe"}This is only for Stripe payments.{/if}
– {if gateway="paypal" amount=">50"}PayPal and amount over $50!{/if}
– {if user_role="subscriber"}Hello, valued subscriber!{/if}
Why use this plugin?
– 🧠 Make your emails smarter and more relevant
– 🛒 Target messages by payment method or order value
– 👤 Personalize content for different user roles
– 🔌 Easily extensible for developers
– More to come!
Add conditional blocks to your EDD email templates. Here are working examples for all available conditions:
1. By Gateway
Only for Stripe payments:
{if gateway=”stripe”}This is only for Stripe payments.{/if}
Only for PayPal payments:
{if gateway=”paypal”}This is only for PayPal payments.{/if}
2. By Amount
Order total greater than $50:
{if amount=”>50″}Shown if order total is greater than $50.{/if}
Order total less than or equal to $20:
{if amount=”<=20″}Shown if order total is $20 or less.{/if}
Order total exactly $100:
{if amount=”100″}Shown if order total is exactly $100.{/if}
3. By User Role
For subscribers:
{if user_role=”subscriber”}Hello, valued subscriber!{/if}
For customers with the ‘administrator’ role:
{if user_role=”administrator”}Special message for admins.{/if}
4. Multiple Conditions
PayPal and order is $100 or more:
{if gateway=”paypal” amount=”>=100″}PayPal and order is $100 or more!{/if}
Stripe and user is a subscriber:
{if gateway=”stripe” user_role=”subscriber”}Stripe payment from a subscriber!{/if}
Developed by Mihai Joldis
This plugin is licensed under the GPLv2 or later.