Preview abandoned cart products in Klaviyo

Test a repeating product row against a checkout with two different items before activating your email.

Creative operations4 min read

A cart email can look correct with one product even when every row points to the first item. Test it with two visibly different products, then check each row's image, details and destination separately.

This example uses a Shopify checkout and a flow triggered by Started Checkout (called Checkout Started in some integrations). Field paths vary by integration and event: copy them from the event your own flow uses. A Viewed Product event belongs to a different, single-product browse flow; it cannot establish that a cart table repeats correctly. Klaviyo's dynamic-block guide describes the Shopify example.

Make a checkout worth testing

In your store, add two different products with distinguishable images and variants. For example, use one violet bottle, 250 ml, quantity 1, and two coral mugs, large. Note each product's name, variant, quantity, price, image and product URL. Start checkout with a test email address and wait for the event to appear in Klaviyo. This is a test scenario, not a claim about a real store or a payload to paste into Klaviyo.

Open the flow email and choose Preview & test. Select the recent Started Checkout event for that test profile. In the event properties, expand the item list and confirm both products are present. If no matching event is available, complete the checkout-start action again and check tracking before editing the table. A test send alone cannot supply missing event data.

Bind the row to the item list

Start with a prebuilt abandoned-cart email for your integration where possible. Select its dynamic table and inspect Styles. In Klaviyo's Shopify example, the detailed item array is event.extra.line_items: enter it as Row collection, without braces or an index, and set Row alias to item. The top-level Items list may contain names without the product details needed for the row.

The preview panel gives full paths for an individual item. Replace the collection and its item index with the alias, while retaining any later index that selects an image:

For example, turn {{ event.extra.line_items.0.title }} into {{ item.title }}. For the first product image, use {{ item.product.images.0.src }}; this last index still selects the first image within each product.

Use the image tag in the image cell's dynamic image field. Add title, quantity, variant and price only from properties present in your event. For a Shopify event that has event.extra.line_items.0.product.handle, use {{ organization.url|trim_slash }}/products/{{ item.product.handle }} as the image or title link. If your event provides a complete item URL instead, use that field with the row alias. Check the product links and the return-to-checkout button separately. If the price is a number without a currency symbol, Klaviyo documents {% currency_format item.price %} for formatting it.

Do not assume the generic product URL selects the purchased variant. Open each link and verify its destination and variant selection; if the event does not provide a suitable variant-specific URL, use your integration's supported link or adjust the expectation before sending.

Check both rows and recover missing data

Preview the same two-item checkout. The bottle row should show the bottle image, its 250 ml variant and quantity 1; the mug row should show the mug image, large variant and quantity 2. Check the prices against the event and open each product link: neither should lead to the other product. Then test the checkout-return button separately. If variant information is absent from the event, don't invent it in the template; find an available field or leave it out.

If rows are blank, first verify that the selected preview event is the flow's checkout event and contains the detailed array. Then compare the collection, alias, spelling and capitalization to the event properties; remove only the index immediately after the collection. If the data is sometimes absent, Klaviyo's dynamic table offers optional fallback content. Preview that condition too, and use a neutral message rather than showing a made-up product. If the wrong metric or integration supplies the event, select a matching event or correct the flow's data source before changing variables.

Finally, send a test to yourself and open it on desktop and mobile. Confirm images load, links go to the intended destinations and the rows remain readable. Preview validates a sample event; it does not prove that every future event has the same fields. Check the flow's timing and filters before enabling it.

Sources: Klaviyo: dynamic blocks, preview panel, and table blocks.

Developer tools
All guides
Preview abandoned cart products in Klaviyo | Formatry Media — Formatry