Skip to content

How to Add the Corso Snippet to Shopify Order Confirmation Emails

You can add a Corso snippet to your Shopify order confirmation email that displays only when a customer purchases Package Protection—whether it’s through the product or shipping rate method.

This snippet gives customers clear instructions on how to file a claim or contact Corso, helping reduce your support load and improving the post-purchase experience.

✅ Automatically routes shipping claims to Corso
✅ Gives protected customers clear next steps
✅ Reduces customer support tickets for your team

In your Shopify admin, navigate to:
Settings > Notifications > Order Confirmation

Selecting the Order Confirmation notification in the Shopify admin

Scroll through the HTML email template and find where you’d like to place the Corso message.

We recommend placing it just below the “Visit our store” button in the default template.

Use the version provided in the knowledge base or provided by your Corso onboarding team. It should look something like this:

<!--Corso Code Start-->
{% for line in subtotal_line_items %}
{% for vendor in line.product.vendor %}
{% if vendor contains 'Corso' or order.attributes._corsoSpGuarantee == 'true' %}
{% assign hasCorso = true %}
{% break %}
{% endif %}
{% endfor %}
{% endfor %}
{% if hasCorso %}
<tr>
<td>
<div style="padding: 20px; margin: 0 auto; border-top: 1px solid #DDD; border-bottom: 1px solid #DDD; max-width: 560px; width: 100%; box-sizing: border-box; text-align: center;">
<div style="padding-bottom: 10px;">
<img style="width: 80px; max-width: 100%;" src="https://cdn.corso.com/img/corso-logo.png" alt="corso logo" title="corso logo">
</div>
<p style="color: #777; line-height: 150%; font-size: 16px; margin: 0; padding: 0 10px;">
Thanks for choosing a Corso shipping option. Should you have any shipping issues with lost, damaged, missing, or stolen items, simply go <a href="https://app.corso.com/[brand-path-name]/reorder/{{order.id}}" style="color: #007bff;">here</a>. If you don't want streamlined resolutions for shipping issues or if this was added by mistake, <a href="https://app.corso.com/[brand-path-name]/order/{{order.id}}/edit" style="color: #007bff;">please contact us</a>.
</p>
</div>
</td>
</tr>
{% endif %}
<!--Corso Code End-->

The snippet contains two links — the claim link and the opt-out link — and both use the same placeholder:

[brand-path-name]
Replace it with your brand path name assigned by Corso
(Found in Corso Admin under Settings > Theme)

The claim link is a deep link that includes the orderId, allowing customers to go directly to their order within the Corso portal rather than having to manually look up their order using their Order Number and Email.

The opt-out link points to Order Editing, where the customer can remove protection from their order themselves.

To send customers to a different part of the portal — the Hub or Order Editing — swap the claim link for one of the URLs in Customer Portal Deep Links below.

Once you’ve added the snippet:

  • Click Save in Shopify
  • Use the “Preview email” button
  • Or inspect the email using your browser’s developer tools to confirm the snippet appears correctly

Note: The snippet will only display when the order includes a Corso-protected shipping line or the Corso product (vendor = Corso). It will not show for unprotected orders.


You can point the snippet at any part of the customer portal. Which URL structure you use depends on how your portal is set up.

Use these if your portal is hosted by Corso at app.corso.com. Deep links use a path structure.

DestinationURL
Shipping Protection claimhttps://app.corso.com/[brand-path-name]/reorder/{{order.id}}
Hubhttps://app.corso.com/[brand-path-name]/order/{{order.id}}
Order Editinghttps://app.corso.com/[brand-path-name]/order/{{order.id}}/edit

Use these if your portal is embedded on your own site. Deep links use URL parameters, which the embedded portal reads from the host page.

DestinationURL
Hubhttps://[brand-site-domain]/pages/[shopify-page]?orderId={{order.id}}
Order Editinghttps://[brand-site-domain]/pages/[shopify-page]?orderId={{order.id}}&isOrderEdit=true
PlaceholderWhat to replace it with
[brand-path-name]Your Corso brand path name, found in Corso Admin under Settings > Theme
[brand-site-domain]Your store’s domain, for example www.yourstore.com
[shopify-page]The handle of the Shopify page your portal is embedded on, for example manage-your-order
{{order.id}}Leave as-is. Shopify’s Liquid fills in the order ID when the email sends

We’re happy to help you customize and place this snippet. If you’d prefer our team to handle this setup or need assistance finding your Corso URLs, just reach out.