All things Shopify and commerce
I want to be able to automatically send a unique email to my customers after they purchase a particular product.
For example, I sell physical books. But I'm planning to sell a PDF product as well, and for that product I want an email to go out with the link to the PDF.
I chatted with support and they didn't think there was a way to do this (native to Shopify).
I see there are some third party apps but I can't afford another service and cannot justify it for just one product.
Hi @novalin,
There is a way on this. I am able to do it on my Shopify store. You need to have metafields connected to your product, call that metafield in the order confirmation email. This need to be done with trial and error btw. This will be customized code
Thank you. Can you tell me more? I'm not extremely technical but I might be able to make this work with more information.
It's unfortunate this isn't a Shopify feature. I'm frequently running into scenarios where I'm surprised Shopify doesn't have support for them.
Hi @novalin,
I see you only need this for one product. Do the following instructions instead.
Figure out your product ID
1. In your Admin page, click Products then click the product you want.
2. The product ID is the end part of the URL. Take note of this product ID. See image below
To add the code in your Notification email
1. In your Admin page, click Settings on your left hand bottom corner, then Notifications.
2. Click Order Confirmation.
3. Find the code below
<span class="order-list__item-title">{{ line_title }} × {{ line_display }}</span><br/>
4. After the code above, paste the code below. Replace the <a href> to your download link. Replace the 7016826503325 to your product ID.
{% if line.product.id == 7016826503325 %}
<a href="your_download_link_here">Download pdf</a>
{% endif %}<br>
Please refer to the image below for placement.
You can preview your Notification email but I would suggest try to be the customer and purchase, so you can see if the button works
Yeah this is the way I'd do it.
@made4Uo Thank you for the instructions! This works! BUT, it doesn't work for more than one custom email. If I enter this code twice (one for each product that needs a custom email), the only one that works is the first listed in the html. Any chance you know how to make this code work for several different products? (each one needs a confirmation email with a different download link).
Any help you can provide would be so greatly appreciated!
Hi there! Are you trying to send a unique PDF attachment link per order?
We recently developed this exact solution for another store and would be happy to help you too.
Feel free to send me an email at ming@sendif.co!
I need help with this one also….. @made4Uo I want several links for several products..
Nice solution @made4Uo, but I wonder, would it kind of send this code alongside the email? I mean, could the clients receiving it (mostly in the case of negative conditions) be able to see the code and open all conditional expressions and links even if their product is not the one in the if condition?
Hi I have a similar request but I can't figure it out. I want the confirmation email for one particular product to have specific instructions. do you know the code for that?
I will be following this as this too is my issue. I have a ticket for events app, but the email confirmation are pretty standard for all other regular products sold in my store. I would like for customer to receive a different response for tickets.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025