Skip to content

Customizing Order Confirmation Emails

You can add a message to your order confirmation email if your customer adds Shipping Protection to your order and you can turn off the default 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.

The steps are as follow:

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

    Clicking on order confirmation screenshot

  2. Add the following code right inside the “capture email_body” tag. This checks to see if the order has Corso 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 %}

    Code of capture email body screenshot

  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 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>

    Adding confrmation of shipping protection screenshot

  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.

    Previewing body of email screenshot

    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.

    Sending email screenshot

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

    No custom message without shipping protection screenshot

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 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 %}

Turning off the Corso Email

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