Forum Discussion
How to loop products from added_item_to_cart events in an email?
Hey Manoj__ - just a few questions here:
1. Is the abandoned cart event a custom event in which you are getting the full readout of the products in the cart?
2. Are you sending unique events for each time an item is added to the cart? This would be problematic as you would not be able to "store" the data from multiple events easily to then be used within an email.
3. My advice here would be to get the "added_item_to_cart" event to concat and show the full products list added to the cart. I.e. first event shows apples, second event shows apples, bananas (when bananas was just recently added) and so on. This would require some changes obviously on the backend / data side.
From there you can just run a for loop in liquid based on the latest event and print them out in the email as needed. Goes without saying that the trigger for the campaign would be the triggering of the add item event with a delay to give time for additional add item events. Let me know and Ill see if I can help.
Related Content
- 8 months ago
- 10 months ago
- 9 months ago
- 8 months ago