1. From your Shopify admin, go to Settings > Checkout.
  2. Scroll down to the Additional scripts section.
  3. Copy the following code to your clipboard (command  + c  on a Mac, ctrl  + c  on a PC).

<script>
  {% assign include_tickets = false %}
{% for line in checkout.line_items %}
  {% if line.fulfillment_service == 'event-ticketing' %}
    {% assign include_tickets = true %}
  {% endif %}
{% endfor %}

{% if include_tickets == true %}
    Shopify.Checkout.OrderStatus.addContentBox(
     '<h2>Download your tickets</h2>',
     '<p>Print or add your tickets to Apple wallet! <a href="https://shopify.guestmanager.com/orders/download/{{checkout.order_id}}/{{checkout.order_number}}">Download tickets</a></p>'
    )

{% endif %}
</script>

Paste the code into the Additional scripts box. (press ctrl + V on a PC or command + V on a Mac)

You are free to customize the text in the snippet above, just be careful not to change any quote marks.

Did this answer your question?