Snippets

loopingo Shopify Integration

You are viewing an old version of this snippet. View the current version.
Revised by Friedrich Roell 08076cd
<script>
    Shopify.Checkout.OrderStatus.addContentBox(`
        <div id="loopingo-integration-container">
            <script type="text/props">
                {
                    "token"         : "f5298854-e64d-11e7-98fd-901b0e9351bb",
                    "order_id"      : "{{ checkout.order.name }}",
                    "voucher_code"  : "{{ checkout.discounts.first.code }}",
                    "email"         : "{{ checkout.email }}",

                    "country"       : "{{ checkout.billing_address.country_code }}",
                    "postal_code"   : "{{ checkout.billing_address.zip }}",
                    "order_amount"  : "{{ checkout.order.total_price }}",

                    "first_name"    : "{{ checkout.billing_address.first_name }}",
                    "last_name"     : "{{ checkout.billing_address.last_name }}",
                    "city"          : "{{ checkout.billing_address.city }}",
                    "street"        : "{{ checkout.billing_address.street }}"
                }
            </script>
        </div>
        <script async src="https://integration.loopingo.com/bundle_v1.js" type="text/javascript"></script>
    `)
</script>
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.