Personalized checkout and custom promotions with Shopify Scripts
Does this code need to be updated? The three are order.id, order.total_price, and order.line_items. I see a few threads in this help forum about the email received back in June 2024 to update the script.
affirm.ui.ready(function(){
affirm.analytics.trackOrderConfirmed({
"orderId": "{{ order.id }}",
"total": "{{ order.total_price }}"
}, [
{% for item in order.line_items %}
{
"productId": "{{ item.sku }}",
"quantity": "{{ item.quantity }}",
}
{% endfor %}
]);
});
</script>
So should I replace one phrase with the other like below?
order.id replace with checkout.order_id
order.total_price replace with checkout.order_id.totalprice
order.line_items replace with checkout.order_id.line_items
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025