Skip to main content

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

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