[WordPress] 外掛分享: Conditional Email Tags for Easy Digital Downloads

首頁外掛目錄 › Conditional Email Tags for Easy Digital Downloads
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
全新外掛
安裝啟用
尚無評分
274 天前
最後更新
問題解決
WordPress 6.2+ PHP 7.4+ v1.0.3 上架:2025-07-07

內容簡介

### 條件郵件標籤用於 Easy Digital Downloads 外掛讓您使用簡單的 {if ...}{/if} 標籤將智能動態內容添加到您的 EDD 電子郵件模板中。根據付款網關、訂單金額、使用者角色等,個性化您的客戶郵件!

#### 使用這個外掛的原因:
- 🧠 讓您的郵件更聰明、更相關
- 🛒 透過付款方式或訂單價值來定位郵件
- 👤 為不同使用者角色個性化內容
- 🔌 非常適合開發人員擴展使用
- 更多功能即將推出!

### 使用方法
在您的 EDD 電子郵件模板中添加條件區塊。以下是所有可用條件的工作範例:
1. 根據付款網關
- 僅適用於 Stripe 付款:
```
{if gateway="stripe"}This is only for Stripe payments.{/if}
```
- 僅適用於 PayPal 付款:
```
{if gateway="paypal"}This is only for PayPal payments.{/if}
```

2. 根據金額
- 訂單總額大於 $50:
```
{if amount=">50"}Shown if order total is greater than $50.{/if}
```
- 訂單總額少於或等於 $20:
```
{if amount="<20"}Shown if order total is $20 or less.{/if}
```
- 訂單總額正好是 $100:
```
{if amount="100"}Shown if order total is exactly $100.{/if}
```

3. 根據使用者角色
- 針對訂閱者:
```
{if user_role="subscriber"}Hello, valued subscriber!{/if}
```
- 針對具有 '管理員' 角色的客戶:
```
{if user_role="administrator"}Special message for admins.{/if}
```

4. 多個條件
- PayPal 且訂單金額為 $100 或更高:
```
{if gateway="paypal" amount=">=100"}PayPal and order is $100 or more!{/if}
```
- Stripe 且使用者是訂閱者:
```
{if gateway="stripe" user_role="subscriber"}Stripe payment from a subscriber!{/if}
```

### 開發者及授權資訊
- 開發者:Mihai Joldis
- 授權:該外掛根據 GPLv2 或更新版本授權。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Conditional Email Tags for Easy Digital Downloads」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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 price, user role, and more!
Examples:
– {if gateway="stripe"}This is only for Stripe payments.{/if}
– {if gateway="paypal" price=">50"}PayPal and price over $50!{/if}
– {if user_role="subscriber"}Hello, valued subscriber!{/if}
– {if tax=">10"}This order has significant tax.{/if}
– {if discount_codes="SUMMER20"}Special summer discount applied!{/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!
Usage
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 Price

Order total greater than $50:
{if price=”>50″}Shown if order total is greater than $50.{/if}

Order total less than or equal to $20:
{if price=”<=20″}Shown if order total is $20 or less.{/if} Order total exactly $100: {if price=”100″}Shown if order total is exactly $100.{/if} 3. By Tax Order tax greater than $10: {if tax=”>10″}This order has significant tax.{/if}

Tax-free purchase:
{if tax=”0″}Tax-free purchase!{/if}

4. By Discount Codes

Specific discount code applied:
{if discount_codes=”SUMMER20″}Special summer discount applied!{/if}

No discount applied:
{if discount_codes=””}No discount applied.{/if}

5. 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}

6. Multiple Conditions

PayPal and order is $100 or more:
{if gateway=”paypal” price=”>=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}

High-value order with tax:
{if price=”>100″ tax=”>10″}High-value order with significant tax.{/if}

Conditional Content Blocks
You can show or hide content in your emails based on order or user properties using {if …} blocks.
Basic usage
{if gateway="stripe"}
Thank you for paying with Stripe!
{/if}

Multiple conditions (AND/OR)

{if gateway="stripe" OR gateway="paypal"}
Thank you for using an online payment method!
{/if}

{if user_role="administrator" AND gateway="stripe"}
Special admin Stripe message!
{/if}

Use AND to require all conditions to be true.
Use OR to require at least one condition to be true.
You can mix and match as needed:
{if gateway=”stripe” OR gateway=”paypal” AND user_role=”customer”}

Supported Operators

AND, OR (logical operators): {if gateway=”stripe” OR gateway=”paypal”}

Credits
Developed by Mihai Joldis
License
This plugin is licensed under the GPLv2 or later.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon