【郵件範本】如何調整郵件範本呈現商品含稅價
郵件範本內預設會呈現商品未稅價,所以如果商店內含稅,訂單顯示和郵件範本(如訂單收據)會有不一樣的顯示。如果你想調整郵件範本顯示內含稅,你可參考這文章的教學。

目前需調整的郵件範本如下:
訂單確認信(成功下單)
訂單明細(收據)
付款成功通知信
前往「訂單確認信」 → product.discounted_subtotal_exclude_tax 換成 product.total_price

移除「訂單確認信」內的「未稅訂單金額」和「稅額」

(1)郵件範本內切換「代碼視圖」

(2)找到以下代碼並刪除

(3)再度點擊「代碼視圖」 → 點擊儲存
前往「訂單明細」 → product.discounted_subtotal_exclude_tax 換成 product.total_price

移除「訂單明細」內的「未稅訂單金額」和「稅額」

(1)郵件範本內切換「代碼視圖」

(2)找到以下代碼並刪除
和

(3)再度點擊「代碼視圖」 → 點擊儲存
前往「付款成功通知信」 → product.discounted_subtotal_exclude_tax 換成 product.total_price

移除「付款成功通知信」內的「未稅訂單金額」和「稅額」

(1)郵件範本內切換「代碼視圖」

(2)找到以下代碼並刪除

(3)再度點擊「代碼視圖」 → 點擊儲存
設定前:

設定後:


目前需調整的郵件範本如下:
訂單確認信(成功下單)
訂單明細(收據)
付款成功通知信
訂單確認信
前往「訂單確認信」 → product.discounted_subtotal_exclude_tax 換成 product.total_price

移除「訂單確認信」內的「未稅訂單金額」和「稅額」

(1)郵件範本內切換「代碼視圖」

(2)找到以下代碼並刪除
<tr>
<td style="font-size: 16px;color: #444; padding: 15px 0 5px 0;width:50%;"><span>金額:</span></td>
<td style="padding: 2px 0;text-align: right;"><strong>{{order.discounted_total_exclude_tax}}</strong></td>
</tr>
<tr style="display: none;">
<td>{% if order.total_product_tax %}</td>
</tr>
<tr>
<td style="padding: 2px 0;"><span>稅額:</span></td>
<td style="padding: 2px 0;text-align: right;"><strong>{{ order.total_product_tax }}</strong></td>
</tr>
<tr style="display: none;">
<td>{% endif %}</td>
</tr>

(3)再度點擊「代碼視圖」 → 點擊儲存
訂單明細
前往「訂單明細」 → product.discounted_subtotal_exclude_tax 換成 product.total_price

移除「訂單明細」內的「未稅訂單金額」和「稅額」

(1)郵件範本內切換「代碼視圖」

(2)找到以下代碼並刪除
<tr>
<td style="font-size: 16px;color: #444; padding: 15px 0 5px 0;width:50%;"><span>金額:</span></td>
<td style="padding: 2px 0;text-align: right;"><strong>{{order.discounted_total_exclude_tax}}</strong></td>
</tr>
和
<tr style="display: none;">
<td>{% if order.taxes_included %}</td>
</tr>
<tr style="display: none;">
<td>{% if order.total_product_tax %}</td>
</tr>
<tr>
<td style="padding: 2px 0;"><span>稅額{% if order.tax_rate %}({{order.tax_rate}}%){% endif %}:</span></td>
<td style="padding: 2px 0;text-align: right;"><span>{{ order.total_product_tax }}</span></td>
</tr>
<tr style="display: none;">
<td>{% endif %}</td>
</tr>
<tr style="display: none;">
<td>{% else %}</td>
</tr>
<tr style="display: none;">
<td>{% if order.total_tax %}</td>
</tr>
<tr>
<td style="padding: 2px 0;"><span>稅額{% if order.tax_rate %}({{order.tax_rate}}%){% endif %}:</span></td>
<td style="padding: 2px 0;text-align: right;"><span>{{ order.total_tax }}</span></td>
</tr>
<tr style="display: none;">
<td>{% endif %}</td>
</tr>
<tr style="display: none;">
<td>{% endif %}</td>
</tr>

(3)再度點擊「代碼視圖」 → 點擊儲存
付款成功通知信
前往「付款成功通知信」 → product.discounted_subtotal_exclude_tax 換成 product.total_price

移除「付款成功通知信」內的「未稅訂單金額」和「稅額」

(1)郵件範本內切換「代碼視圖」

(2)找到以下代碼並刪除
<tr>
<td style="font-size: 16px;color: #444; padding: 15px 0 5px 0;width:50%;"><span>金額:</span></td>
<td style="padding: 2px 0;text-align: right;"><strong>{{order.discounted_total_exclude_tax}}</strong></td>
</tr>
<tr style="display: none;">
<td>{% if order.total_product_tax %}</td>
</tr>
<tr>
<td style="padding: 2px 0;"><span>稅額:</span></td>
<td style="padding: 2px 0;text-align: right;"><strong>{{ order.total_product_tax }}</strong></td>
</tr>
<tr style="display: none;">
<td>{% endif %}</td>
</tr>
<tr style="display: none;">
<td>{% if order.total_shipping_include_tax %}</td>
</tr>

(3)再度點擊「代碼視圖」 → 點擊儲存
設定結果:
設定前:

設定後:

更新時間: 13/01/2025
感謝!