Um deinen Kunden nach dem Kauf eines Gutscheins den Gutscheincode im Mailtemplate anzuzeigen, muss das Mailtemplate erweitert werden.
Unter "Einstellung > Shop > E-Mail Templates" findest du das Template "Order confirmation". Hier erweiterst du den Text sowie den HTML Block um nachfolgende Scripte.
Text / Plain
{% if order.extensions and order.extensions.netiEasyCouponPurchaseVouchers is defined %} {% if order.extensions.netiEasyCouponPurchaseVouchers|length is same as(1) %}Information about the purchased voucher: {% else %}Information about the purchased vouchers: {% endif %} {% if order.extensions.netiEasyCouponPurchaseVouchers|length is same as(1) %}The voucher can only be redeemed after the order has been paid. Your vouchers can also be found in your account. {% else %}The vouchers can only be redeemed after the order has been paid. Your vouchers can also be found in your account. {% endif %} {% for purchaseVoucher in order.extensions.netiEasyCouponPurchaseVouchers %}Article: {{ purchaseVoucher.product.translated.name }} Code: {{ purchaseVoucher.code }} Value: {{ (purchaseVoucher.value * purchaseVoucher.currencyFactor) | number_format(purchaseVoucher.currency.decimalPrecision) }} {{ purchaseVoucher.currency.symbol }} {% endfor %} {% endif %}
HTML
{% if order.extensions and order.extensions.netiEasyCouponPurchaseVouchers is defined %} {% if order.extensions.netiEasyCouponPurchaseVouchers|length is same as(1) %} Information about the purchased voucher:<br /> {% else %} Information about the purchased vouchers:<br /> {% endif %} <br /> {% if order.extensions.netiEasyCouponPurchaseVouchers|length is same as(1) %} The voucher can only be redeemed after the order has been paid.<br /> Your vouchers can also be found in your account.<br /> {% else %} The vouchers can only be redeemed after the order has been paid.<br /> Your vouchers can also be found in your account.<br /> {% endif %} <br /> {% for purchaseVoucher in order.extensions.netiEasyCouponPurchaseVouchers %} Article: {{ purchaseVoucher.product.translated.name }}<br /> Code: {{ purchaseVoucher.code }}<br /> Value: {{ (purchaseVoucher.value * purchaseVoucher.currencyFactor) | number_format(purchaseVoucher.currency.decimalPrecision) }} {{ purchaseVoucher.currency.symbol }}<br /><br /> {% endfor %} {% endif %}
Kommentare
0 Kommentare
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.