Shopify Support
Hi
We need to modify the “Order Confirmation” email so that there is a message that is only seen by international customers.
We have 2 shipping zones: Domestic and Rest of World. Only the second would see the message.
I believe this is possible by editing the “Order Confirmation” template.
I found some information about variables here: https://help.shopify.com/en/manual/orders/notifications/email-variables but it is not so specific about how to configure them.
The closest variable I could find is “shipping_method.title” but I don’t know if the zone is a shipping method or how to properly set it up.
Could anyone please help me with a snippet of code that would add a message only to orders sent to the “Rest of World” shipping zone?
Thanks very much!
Hi @vimalatreasures ,
You do have to look on delivery method, instead you can use the code for reference below.
{% if requires_shipping %}
{% if delivery_method != local %}
Show this message...
{% endif %}
{% endif %}
I very much appreciate this.
The only problem is that I can’t find a delivery method that corresponds to international shipping or “Rest of World” shipping zone. I’m starting to think that such a variable does not exist.
I found this https://shopify.dev/api/admin-graphql/2022-07/enums/DeliveryMethodType
but there is no mention of shipping zone or international shipping.
I’m starting to think this is maybe not possible or at least beyond my level of expertise.
Thanks again @made4Uo ! The syntax look promising but I don’t think the right variable exists.
Hi @vimalatreasures ,
The “Rest of World” is the same as not local. The code will call the delivery method that is NOT local, same as international shipping
1 Like
Okay, now I get it. I can use the code exactly as you posted it. Thank you very much!
1 Like