Skip to main content
Question

Custom Print Products Displayed Dynamically

  • January 27, 2026
  • 4 replies
  • 23 views

Forum|alt.badge.img

Hi Klaviyo Community, 

 

I’m working on an abandon checkout flow that uses the trigger metric ‘Started Checkout’. 

The site I’m working on sells both custom printed items and non-printed (standard items). I want to go ahead an pass the new product images with their custom design into Klaviyo, which we did. 

Then we wanted to make sure that we can see each of the variants for the custom printed item, but I’m not able to display anything other than the first item using the following:

{{ event.extra.line_items.0.properties.1.value|default:'' }}

To top it off, I created this Jinja snippet that should check for the custom image and if it’s false to use the standard non-custom image. Else use the Custom image. The following code correctly displays a non-custom item but can not display a custom item (any thoughts?):

{% if event.extra.line_items.0.properties.1.value == false %}

{{ event.extra.line_items.0.product.variant.images.0.src|default:'' }}

{% else %}

{{ event.extra.line_items.0.properties.1.value|default:'' }}

{% endif %}

 

At this point any idea is worth trying.

 

Thanks, 

Bobby

 

4 replies

cadence
Expert Problem Solver III
Forum|alt.badge.img+12
  • Expert Problem Solver III
  • January 28, 2026

Hey ​@bobbyvb, are you able to share an example line_items payload for one these “Started Checkout” events that includes both a custom + non-custom item? Please do not include any sensitive info! You can get this by going to Metrics > “Started Checkout” > Activity Feed. Happy to advise on your django syntax once I can get a better sense of what custom vs. non-custom looks like here, and where this custom image field lives. 

The code you have looks like it’d only ever render the 0-indexed (1st) item in line items. You’d likely want to loop over each item in line items to render multiple. This guide on content-repeating might be helpful for you - https://help.klaviyo.com/hc/en-us/articles/4408802445339 

Cadence / Book a demo


whereisjad
Expert Problem Solver IV
Forum|alt.badge.img+16
  • Expert Problem Solver IV
  • January 28, 2026

@bobbyvb I have worked with custom printed e-commerce stores before.  Usually the custom image is not passed along with the Started Checkout event.  It would help if you indicated what platform this is happening in and we would be better able to advise in this situation.  My hunch is that maybe you would need to have the custom image URL set as a custom profile property in order to leverage it in the emails.


Forum|alt.badge.img
  • Author
  • Contributor I
  • January 28, 2026

@whereisjad this is occurring on Shopify. Right now I can either pull the custom image from the first item OR the Shopify Image. I have not been able to loop the Custom Item Images correctly. Or check to see if the item has a custom image and choose which image to display. I don’t think I’m able to create and if statement in an image Dynamic variable with a condition that isn’t based on an image. It wouldn’t even let me apply that if statement. 

 

@cadence When I look at the metrics, Checkout Started- Activity log for an order with one custom item one non-custom I only see the images. However, The custom image shows as a blank image within Klaviyo. Perhaps the way this is being passed into Klaviyo is where the issue lives?


whereisjad
Expert Problem Solver IV
Forum|alt.badge.img+16
  • Expert Problem Solver IV
  • January 28, 2026

@bobbyvb could you please link us to the website? It ought to be something solved via javascript.  I’m sure the custom image functionality isn’t something out of the box with Shopify and you are achieving it via a 3rd party plugin