Hi there,
I would like to add a dynamic line to our confirmation email from Shopify to customers if they have purchased a specific product. IE - If they have purchased our shipping insurance, the confirmation email directs them to where they can make a claim.
This is the code I have placed in the liquid code of the confirmation email but when I tested it, it didn’t work.
{% if product.title == ‘protectMY Products Shipping Protection’ %}
You purchased protectMY Products Protection, if there is any issues with your package during shipping, please make a claim via this link.
{% endif %}
If anyone can help, that would be great.
Thanks
Hi @kelly93
You need to edit your code to this to ensure it works on your email.
{% if line.product.title == 'protectMY Products Shipping Protection' %}
You purchased protectMY Products Protection, if there is any issues with your package during shipping, please make a claim [via this link.](https://au.protectmeproducts.co/pages/protectme-claim-page)
{% endif %}
Hi @kelly93
Make sure you add the correct product name instead ‘protectMY Products Shipping Protection’.
Or could you send me that product URL so I can provide another code.
{% if line.product.id == 9423258616124 %}
You purchased protectMY Products Protection, if there is any issues with your package during shipping, please make a claim [via this link.](https://au.protectmeproducts.co/pages/protectme-claim-page)
{% endif %}
Please try to update the code to this and check again
Hey there, still not working 
Hey Dan - This code still wasn’t working. Was there another solution?