Hello everyone, here’s the thing:
I am creating order confirmation (post purchase) flow and I need to add product name, subtotal (price for that product), discount, quantity and total price. I am using Shopify.
I have everything working fine but the total price is not correct for some reason. It doesn’t calculate the price:
{{ event.Items.0 }}
Subtotal: {{ event.extra.line_items.0.line_price }}
Discount: {{ event|lookup:'Total Discounts' }}
Quantity: {{ event|lookup:'Item Count' }}
Total: £ {{ event.extra.customer.total_spent }}
It reads like this:
Subtotal: £ 29.0
Discount: 8.80
Quantity: 2
Total: £ 79.20
What am I doing wrong? I’ve read all order confirmation articles on Klaviyo and I used variables for Shopify. I was thinking the subtotal variable is not maybe correct variable, but I am not sure.
Thanks