Hi,
We are following this documentation Link and using the Each Helper function to show the items of cart in email content for an Event we had created, and fetching the Productlistitems array from analytics schema and adding the contextual values from that array, but while triggering the journey we are receiving blank email. Does anybody knows why?
We are using the same code as present on the website
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @navalks,
For each productlistitems you have given product as alias. When you display each product details within each loop it will like below,
{{#each context.journey.events.event_ID.productListItems as |product|}} <table> <tbody> <tr> <td><b>{{product.name}}</b></td> <td><b>{{product.quantity}}</b></td> <td><b>${{product.priceTotal}}</b></td> </tr> </tbody> </table> {{/each}}
Thanks!
Views
Replies
Total Likes
Hello @navalksi
Looks like the documentation you are referring to is not updated and it does not work like that.
Your code should look like this.
{{#each context.journey.events.835380668.productListItems as |product|}} <table> <tbody> <tr> <td><b>{{product._experience.analytics.customerDimensions.eVars.eVar52}}</b></td> <td><b>{{product._experience.analytics.customerDimensions.eVars.eVar56}}</b></td> <td><b>${{product._experience.analytics.customerDimensions.eVars.eVar54}}</b></td> </tr> </tbody> </table> {{/each}}
Also, You need to check the path of the variables. I don't _experience.analytics.customerDimesntion.eVars.eVar52 is a right path. Generally, product list items contain an array of items related to the product data.
Hi @_Manoj_Kumar_ @SatheeskannaK Thanks for your response, If i am using the alias with the path then editor is showing the below error and unable to find the paths
But if i am using the correct path and not using the alias then the validation runs correctly
But even after the validation done sucessfully, the content is showing blank in the email
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies