---
title: "How to choose a product ID variable for a dynamic review quote block"
description: "Learn how to select a product ID variable to display dynamic review quotes related to the products someone is interested in. These variables vary between events, so make sure to use the right variable for your flow."
canonical_url: "https://help.klaviyo.com/hc/en-us/articles/25995019549979"
markdown_url: "https://help.klaviyo.com/hc/en-us/articles/25995019549979.md"
locale: "en-us"
category: "Reviews"
section: "Build and use reviews"
updated: "2026-10-29"
---

# How to choose a product ID variable for a dynamic review quote block

## You will learn

Learn how to select a product ID variable to display dynamic review quotes related to the products someone is interested in. These variables vary between events, so make sure to use the right variable for your flow.

## Before you begin

This block is only available in accounts that use Klaviyo Reviews. Learn how to [get started with Klaviyo Reviews](https://help.klaviyo.com/hc/en-us/articles/15937542819355.md). 

## About dynamic review blocks

Dynamic review quote blocks can display different reviews depending on when the email is sent and what actions the recipient has taken, unlike static review blocks, which feature the same product for every recipient. 

This article specifically covers dynamic review blocks, not static. Static review quote blocks do not require a product ID variable.

This process is only supported in certain flow emails: event-triggered flows, back in stock flows, low inventory flows, and price drop flows. Learn how to [add a dynamic review block](https://help.klaviyo.com/hc/en-us/articles/18007373861915.md) to your emails.

In many cases, Klaviyo will auto-detect the product ID. In these cases, you don’t need to manually choose a product ID variable. If you see your flow’s trigger in a card under **Product selection**, Klaviyo will auto-detect your product ID, and you do not need to follow the steps outlined here.

![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/343f377272deec4540c843e26d81485495bbb661-396x156.png?auto=format)

However, for some custom flows, you may need to manually input a product ID variable. If you see the **Product ID variable** field shown in the screenshot below, follow these steps to add a variable.

![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/131b503afd70e0620c47c574996d5654131c271e-1046x454.png?auto=format)

## Product ID variables

Preview your email after entering a product ID variable. An incorrect variable can prevent the email from being delivered.

The tables below offer common product ID variables. For a different event, find the product ID in its event data using these steps:

1. From your flow email’s editor, click **Preview**. 

2. Under **Event properties**, click the property containing the product ID to copy its tag. Match the property’s capitalization exactly.

3. For a tag such as {{ event.product.id|default:'' }}, remove the surrounding curly braces and the default filter, leaving `event.product.id`.

4. Click **Done** to return to the editor, then select your review quote block. Under **Product selection**, paste the variable into the **Product ID variable** field. Click outside the field to apply it.

5. Click **Preview** to check the variable. Use the arrows to check other recent events, if available. If Klaviyo reports that the review quote’s event variable is invalid, correct it before sending. Click **Done** to return to the editor.



**📝 Note:** For checkout and order events with multiple items, the variables in the tables below use .0 to select the first item. We recommend using the first item when entering a variable manually, because not every event contains a second, third, or later item.

### Shopify product ID variables

| **Flow trigger** | **Event variable** |
| --- | --- |
| Browse abandonment | event.ProductID |
| Abandoned cart (*Added to Cart* trigger) | event.ProductID |
| Abandoned checkout (*Checkout Started* trigger) | event.extra.line_items.0.product.id |
| Back in stock | event.ProductID |
| Price drop | event.product_id |
| Low inventory | event.product_id |
| Placed Order | event.extra.line_items.0.product.id |

### WooCommerce product ID variables

| **Flow trigger** | **Event variable** |
| --- | --- |
| Browse abandonment | event.ProductID |
| Abandoned cart (*Added to Cart* trigger) | event.AddedItemProductID |
| Abandoned checkout (*Started Checkout* trigger) | event.extra.Items.0.ProductID |
| Placed Order | event.extra.Items.0.ProductId |

## Additional resources

- [How to feature reviews in emails with the review quote block](https://help.klaviyo.com/hc/en-us/articles/18007373861915.md)
  Learn how to feature a product review within a campaign or flow email via the Review quote block. With Klaviyo Reviews, you can use this block to feature customer testimonials and ratings to build trust in your brand and create social proof. 
- [Understanding how Klaviyo prioritizes review requests](https://help.klaviyo.com/hc/en-us/articles/16681935355163.md)
  Learn why review requests feature a single item, how an item is selected from an order to be reviewed, how to request reviews for multiple products, and how you can adjust your review request settings. 
