Replace order with checkout in thank you page

Replace order with checkout in thank you page

Mehreen_Hussain
Shopify Partner
1 0 0

I have received this email from shopify:

As part of ongoing improvements to Checkout and the Thank You page, we’ve identified a change that you need to make to your Additional Scripts to ensure that your conversion tracking and downstream systems are working correctly.

Replace "order.{anything}" with “checkout.order_id” in Additional Scripts and similarly update any downstream systems that rely on this data.

 

Are we supposed to replace the order object with the checkout object entirely? or all the attributes of order object will be replaced by checkout.order_id

 

'payment_type': '{{order.transactions[0].gateway}}',
            {% if order.name %}
            'transaction_id': '{{order.name | remove: "'" | remove: '"'}}',
            {% else %}
            'transaction_id': '{{checkout.id | remove: "'" | remove: '"'}}',
            {% endif %}
            'value': '{{checkout.total_price | times: 0.01 }}',
            'discount_amount': '{{checkout.discounts_amount | times: 0.01}}',
            {% if order.discounts %} 'coupon': '{{ order.discounts[0].code }}', {% endif %}
 
Will order.name be replaced by checkout.name or checkout.order_id.name ?
Replies 0 (0)