d
Topic
Posts:
2
13 days ago

Customized Email Notification for each product type?

Hello,

I am not sure if this is possible or not, but I am looking for a way to customize a order/shipping email notification for each product type.

For example.  I have on my site various t-shirs.  When someone orders a t-shirt with balloons on the front, I want the order email, and shipping email, to say thank you for your 't-shirt with balloons' order.  Maybe even describe the balloons on the t-shirt.  Is there a way to do something like that.

In my head, I envision a hidden product description line that get's included in an email based on the product title or 'category'.  something like that. 

Does anyone know if this is possible, or even understand what I am tryint to accomplish?  Maybe something other than 'product title', 'size', and 'color'.

Thanks,

Tim

i
Replies
May Shopify Employee
Posts:
148
13 days ago

Hi, Timothy!

This is May from Shopify.

That is a very good question. You can edit your email notifications from your settings. It does require some knowledge in coding to do some conditioning in your email template. We have a document here on all notification variables you can use for your email notification. From looking at the document, it looks like adding a product description might be quite challenging or even not possible, since product description is not listed in the variable list.

Do you have a specific example of what you wish your thank you email to look like? If you have a mock-up or a screenshot of the email that you can share, that will be very helpful! I am not an expert in coding, but if your request is supported by our team, we will be more than happy to take a look into it. Alternatively, you can always reach out to our Shopify Experts, or hopefully one of our experts here have some insights on how to achieve this!

Let me know your thoughts! Feel free to reply back to this thread if you have any other questions about your email notifications.

Kind Regards,

May

Shopify Support

 

May | Shopify Support Team | support@shopify.com
Posts:
2
12 days ago

Hello May, and thank you for your response.  Using your response, and some other information on variables, I was able to modify the Order Confirmation Email template to include some % if % statements looking for certain line.product.tags and then adding a statement based on a certain product tag  It isn't perfect as it is very static and should be much more dynamic, so for now it is what it is and it works, but in the future I have to keep modifying this template or find another method for order confirmation emails that include information from a db based on product tag or product item.

Here is a quick look at what I did:

{% for tag in line.product.tags %}

{% if tag == 'some_product_tag' %}

<br>
<em>
"SOME SPECIAL TEXT FOR THE EMAIL BASED ON product tag"
</em>
{% endif %}

{% endfor %}

Much more can be added but this is a quick look.  Thanks again May.

Tim

 

 

May Shopify Employee
Posts:
148
12 days ago

Hello again!

That’s amazing, Tim! I’m glad you were able to piece all the informations together and came up with that code. I think using an if statement with product tags is a great workaround!

Let me know if there is anything else I can help you with for your email notifications. If you prefer, you can also reach out to our 24/7 live support, and we’ll happily help.

Kind Regards,

 

May

Shopify Support


 

May | Shopify Support Team | support@shopify.com