1. Corso Knowledge Base
  2. Green Shipping Protection

Customize your order confirmation email notification with a custom message about Green Shipping Protection

If your customer adds Green Shipping Protection to their order, you can add a dynamic message to your order confirmation email.

You can add a message to your order confirmation email if your customer adds Green Shipping Protection to your order and you can turn off the default Green Shipping Protection email. This reduces the number of emails your customer receives upon ordering and helps them know where to go to get help with shipping issues.

1. Go to Shopify Admin > Notifications and click on "Order Confirmation"

 

2. Add the following code right inside the "capture email_body" tag. This checks to see if the order has Corso Green Shipping Protection


{% for line in line_items %}
{% for tag in line.product.tags %}
  {% assign dtag = tag | downcase %}
  {% if dtag contains "corso" %}
      {% assign hasCorso = true %}
    {% break %}
  {% endif %}
{% endfor %}
{% endfor %}
{% if hasCorso %}
{% endif %}

 

 

3. Inside of the "if hasCorso" snippet tag, add the custom message. Below is a default message you can use.

<div style="padding: 20px 0; margin: 20px 0;border-top: 1px solid #DDD;border-bottom: 1px solid #DDD;">
<div style="padding-bottom: 10px; text-align: center;font-size: 14px;">
<img style="width: 80px;" src="https://corso-media.sfo3.cdn.digitaloceanspaces.com/img/Corso_Horizontal-Lockup_Black.png" alt="corso logo" width="80" title="corso logo">
</div>
<div style="font-size: 14px;font-style:italic;">Thanks for adding Corso Green Shipping Protection to your order. Your package is now protected against shipping loss, theft, or damage. You've also helped us with e-commerce sustainability with a one-time contribution to a verified carbon offset project. Together we have offset hundreds of metric tons of carbon. If you have any shipping issues or questions, simply go to reorder.corso.com</div>
</div>

 

4. Preview, Test, and Save

Click the Preview button to see what the email template will look like. Based on the default message above, it would look like this.

 

You can send a test email to make sure it looks good in the inbox. Based on the default message, it would look like this in the email inbox.

 

If the order does not have Green Shipping Protection, then the custom message will not be displayed.

Here is the entire code snippet


{% for line in line_items %}
{% for tag in line.product.tags %}
{% assign dtag = tag | downcase %}
  {% if dtag contains "corso" %}
    {% assign hasCorso = true %}
    {% break %}
  {% endif %}
{% endfor %}
{% endfor %}
{% if hasCorso %}
<div style="padding: 20px 0; margin: 20px 0;border-top: 1px solid #DDD;border-bottom: 1px solid #DDD;">
<div style="padding-bottom: 10px; text-align: center;font-size: 14px;">
  <img style="width: 80px;" src="https://corso-media.sfo3.cdn.digitaloceanspaces.com/img/Corso_Horizontal-Lockup_Black.png" alt="corso logo" width="80" title="corso logo">
</div>
<div style="font-size: 14px;font-style:italic;">Thanks for adding Corso Green Shipping Protection to your order. Your package is now protected against shipping loss, theft, or damage. You've also helped us with e-commerce sustainability with a one-time contribution to a verified carbon offset project. Together we have offset hundreds of metric tons of carbon. If you have any shipping issues or questions, simply go to reorder.corso.com</div>
</div>
{% endif %}

 

5. If you would like to turn off the email that gets sent by Corso, please contact our support team at support@corso.com and they can easily disable it for you.