Solved

Dynamic data in body of email

  • 16 January 2024
  • 1 reply
  • 37 views

Badge

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

icon

Best answer by annasophiefc 16 January 2024, 15:06

View original

1 reply

Userlevel 3
Badge +9

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!

Reply