Hi
I’m trying to customise a notification email based on the variant.id a customer has purchased but struggling to get it to work for me.
This is the code I have currently…
{% capture email_body %}
Hi {{ customer.first_name }},
Thank you for your purchase!
{% if variant.id != ‘40873069772952’ %}
If you didn’t download your product at the checkout, you’ll receive an email in a few minutes with a link.
{% else %}
We’re getting your order ready to be shipped. We’ll notify you when it has been sent.
{% endif %}
{% endcapture %}
When the variant.id is not 40873069772952, I get the correct sentence but I get the same message when the variant.id is 40873069772952, rather than the else sentence. Can anyone point out where I am going wrong please or a way of looking at the code for a given order to help me debug?