Customize Notifications > Order confirmation email language

Solved
CalvinOU812
Tourist
7 1 0

Hello,

I'm trying to change the statement the customer gets for different delivery / shipping options. Here is the original:

{% case delivery_method %}
{% when 'pick-up' %}
You’ll receive an email when your order is ready for pickup.
{% when 'local' %}
Hi {{ customer.first_name }}, we're getting your order ready for delivery.
{% else %}
Hi {{ customer.first_name }}, we're getting your order ready to be shipped. We will notify you when it has been sent.
{% endcase %}

I want to add shipping methods in before the {% else %}, but I don't know the IDs (examples 'pick-up' and 'local') for the shipping methods. I've tried the {% case shipping_method.title %} route and it works great for the shipping methods, but I can't get the Pick-up and Local Delivery to work because I don't know the proper titles for them (I've tried a lot of different variations). I also tried both (see below), and that works for specific methods, but the {% else %} causes some methods to get two statements. I do want the {% else %} or something like it, to catch all of the other shipping methods.

{% case delivery_method %}
{% when 'pick-up' %}
Hi {{ customer.first_name }}, you’ll receive an email when your order is ready for pickup.
{% when 'local' %}
Hi {{ customer.first_name }}, we're getting your order ready for delivery.
{% endcase %}
{% case shipping_method.title %}
{% when 'Return Shipping and Handling Estimate' %}
Hi {{ customer.first_name }}, please mail us your content as soon as you can.
{% else %}
Hi {{ customer.first_name }}, we're getting your order ready to be shipped. We will notify you when it has been sent.
{% endcase %}

Thank you in advance.

Calvin

 

 

 

0 Likes
dakineskava
Tourist
8 1 2

Did you ever find a solution to this? I'm trying to do the same thing and having no luck. 

0 Likes
CalvinOU812
Tourist
7 1 0

No I didn't, but I figured out a workaround for what I needed to do. What exactly are you trying to do?

0 Likes
CalvinOU812
Tourist
7 1 0

This is an accepted solution.

I tried to edit my last post, but I was too late.

I forgot that I think I did figure out the solution. If you notice any problems, please let me know. Here is the code I'm using. Let me know if you have questions.

{% capture email_title %}Thank you for your purchase! {% endcapture %}
{% capture email_body %}
{% if requires_shipping %}
{% case shipping_method.title %}
{% when 'Your Pickup Location Address' %} (The street address that appears on the Order, I didn't include the city or state)
Hi {{ customer.first_name }}, you’ll receive an email when your order is ready for pickup.
{% when 'Local Delivery' %}
Hi {{ customer.first_name }}, we're getting your order ready for delivery.
{% when 'Your Own Shipping Rate' %}
Hi {{ customer.first_name }}, type in your custom message.
{% else %}
Hi {{ customer.first_name }}, we're getting your order ready to be shipped. We will notify you when it has been sent.
{% endcase %}
{% if delivery_instructions != blank %}
<p><b>Delivery information:</b> {{ delivery_instructions }}</p>
{% endif %}
{% endif %}
{% endcapture %}

0 Likes
dakineskava
Tourist
8 1 2

If anyone else ever has this issue, I found a similar workaround. I did mine like this:

Thank you for your order!
{% if requires_shipping %}
{% if shipping_method.title == 'Free Shipping'%}
Free Shipping Message
{% elsif shipping_method.title == 'Local Delivery' %}
Local Delivery Message
{% endif %}
{% if order.pickup_in_store? %}
Local Pickup Message
{% endif %}
{% endif %}

kg_kcc
New Member
1 0 0

Hey there! I was struggling with the exact same issue and was so pleased to see that you found a solution. I tried to set up our confirmation email the same way that you did (see below) and for some reason none of the text below "Hi customer name, we're preparing your order. Yay!" is showing up. Do you happen to see something in here that I may have missed? 

 

{% capture email_title %}Thank you for your purchase {% endcapture %}

{% capture email_body %}

 Hi {{ customer.first_name }}, we're preparing your order. Yay!  

 

{% if requires_shipping %}

{% if shipping_method.title == 'Standard'%}

Standard Shipping Message

{% endif %}

 

{% if order.pickup_in_store? %}

In store pick-up message

{% endif %} {% endif %} {% endcapture %}

0 Likes
CalvinOU812
Tourist
7 1 0

What are you trying to do? The default code should work.

0 Likes