Skip to content
On this page

Thank You Page ‚Äč

A script can be added to the order "thank you" page so customers can see that their order is protected and easily file a claim if needed. To add this script, go to Settings > Checkout and accounts and paste the following script in the Order Status Page section:

js
<!-- Begin Order Protection Thank You Widget -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js"></script>
<script src="https://order-protection-thank-you.s3.us-west-1.amazonaws.com/post-purchase-with-cancel.min.js"></script>
<script>
let orderId = '{{order_id}}';
let orderNumber = '{{order_number}}';
let customerEmail = '{{customer.email}}';
 {% for line in checkout.line_items %}
  {% if line.vendor == 'Order Protection' %}
     getOrderProtectionWithCancel(orderId, orderNumber, customerEmail);
  {% endif %}
 {% endfor %}
</script>
<!-- End Order Protection Thank You Widget -->