Add Order Status Page Snippet

The Order Status Page snipped needs to be added to Shopify's Order Status Page

The Order Status Page Snippet needs to be installed so that new members can be linked back to their account page.

Copy the following snippet and follow the instructions below to install it correctly:

{% comment %}
{% endcomment %}
{% assign inveterate_display = false %}
{% for item in checkout.line_items %}
  {% if item.product.handle contains 'inveterate-subscription' %}
    {% assign inveterate_display = true %}
  {% endif %}
{% endfor %}
{% if inveterate_display %}
  <div class="inveterate-block">
    <h2>You're a Member!</h2>
    <a href="/account">Return to account page, log in or signup to view your benefits.</a>
    .inveterate-block {
      border: 1px solid #d9d9d9;
      border-radius: 5px;
      margin-top: 50px;
      padding: 15px;
    .inveterate-block h2 {
      margin-bottom: 10px;
{% endif %}
{% comment %}
{% endcomment %}

Where to Add Snippet

In the Shopify admin navigate to Settings -> Checkout. Scroll down to the "Order status page" section and paste the above snippet into "Additional scripts".

Download the PDF below for step-by-step instructions

Last updated