I’m attempting to set up an order confirmation. Orders are pushed via API and logged, an example of the payload (as pulled from Klaviyo’s Activity Feed ) below:
{
"order_id": _
"3772657"
],
"status": "Processing",
"size": i
"9"
],
"style": y
"K1025638"
],
"tracking_id": null,
"$value": 125.27
}
Sometimes an order will hold more than 1 style, price, size, etc, so they are provided as length 1 arrays to allow flexibility. I’m testing with a single item just to keep it simple.
When I go to create a catalog item in an event triggered flow, I use the below in the source editor:
<div>
{% catalog event.style %}
<img src="{{ catalog_item.featured_image.thumbnail.src }}" />
{% endcatalog %}
</div>
But my result is:
Unable to find item with code: h'K1025638']. It may have been deleted. |
It seems to me that for whatever reason, the “o‘ … ‘]” brackets and single quotes in the JSON are getting carried into the string returned by the catalog code filter thingy.
This isn't in production so I can fiddle with how the event is uploaded, but I do intend to build a for loop so I would think that an array is necessary, and a hurdle worth jumping over. Insights appreciated.