What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Adding individualized message to each customer in Order confirmation email using API

Adding individualized message to each customer in Order confirmation email using API

user072319
Shopify Partner
131 0 17

I want to add a individualized message to each client, at the top or bottom of Shopify Order Confirmation emails. How can I do this through API?

The message is a html message within a <p></p> tag, but I can make it a simple text message as well. The important thing is it is unique to each customer. 

Example:

On June 4, I want to include "Happy British Independence day" to my customer(s) in UK

On July 4,  I want to include "Happy Fourth of July" to my customer(s) in US

Appreciate any pointers!

Gina

 

Reply 1 (1)

HunkyBill
Shopify Partner
4853 60 568

The interesting aspect of this is that you have access to the templates for order confirmation emails. And Liquid. An order has customers, and so you have access to that. Customers typically have addresses, and so you very likely have access to their country. Now you can make a decision in Liquid to change the phrase in the confirmation based on the customer's country. A simple {% if %} statement should do. There is no need for an App or API calls. Just customize the Liquid in the templates.

 

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com