Skip to main content
Solved

Dynamic data in body of email

  • January 16, 2024
  • 1 reply
  • 65 views

Forum|alt.badge.img+1

I want to retrieve the product_type of the product in the abandon cart email flow. I can’t seem to access this variable.

Is there a way to lookup the product_type (in additional details on the product), by looking up the event.ProductID

Best answer by annasophiefc

Hi there!

 

Yes, by shooting a wildcard you can see the available data from the product catalog:

 

Example: 

{% catalog event.ProductID %} {{ catalog_item }} {% endcatalog %}

 

And if the product_type is an available data point, you can set it up by saying:

 

{% catalog item.ProductID %} {{ catalog_item.metadata|lookup:"product_type" }} {% endcatalog %} - and then add a default value if the product type is not on all products. This should work for your dynamic abandoned cart table.

 

Hope this helps!

1 reply

annasophiefc
Partner - Platinum
Forum|alt.badge.img+24
  • 2025 Champion
  • 154 replies
  • Answer
  • January 16, 2024

Hi there!

 

Yes, by shooting a wildcard you can see the available data from the product catalog:

 

Example: 

{% catalog event.ProductID %} {{ catalog_item }} {% endcatalog %}

 

And if the product_type is an available data point, you can set it up by saying:

 

{% catalog item.ProductID %} {{ catalog_item.metadata|lookup:"product_type" }} {% endcatalog %} - and then add a default value if the product type is not on all products. This should work for your dynamic abandoned cart table.

 

Hope this helps!