Displaying custom text in Order Confirmation Email based on discount code used

LeeLaaLou
New Member
2 0 0

Hi,

I'm trying to add a line of code into the "Order Confirmation" email notification that is sent to the customer. I'd like to add a text line "Thank you for supporting a great cause" only to customers using a specific discount code.

I had this code but that doesn't seem to work.

{% if discount_application.title == "hello10" %}
Thank you for your support!
{% endif %}

 

Appreciate any help.

Thank you!

0 Likes