Skip to main content

Hi,

I’m having trouble getting dynamic variables to work in my abandoned cart flow using the "Add to Cart" event. I’ve integrated Klaviyo with PrestaShop, and the event data is being captured correctly (I can see properties like AddedItemProductName, AddedItemPriceInclTax, AddedItemImageURL, etc. in the event's properties). However, when I use these variables in my email templates (e.g., {{ event.AddedItemProductName }}, {{ event.AddedItemPriceInclTax }}), they don’t render in the emails.

Am I missing something in how I’m referencing the variables, or is there an issue with the PrestaShop integration?

Please note that I’ve successfully set up a flow and dynamic variables using “started checkout” event. 

Any help or guidance would be appreciated!

Thank you!

Hi @MW2024

I see a support ticket on this, I’m sharing with the broader community as well:

In Klaviyo, the "Add to Cart" event is inherently designed to handle data on a per-item basis. This means that each "Add to Cart" event only captures information for a single item added to the cart. This behavior is consistent across different platforms, including PrestaShop, WooCommerce, and others. Therefore, when using the "Add to Cart" event, you would typically use static tables or variables in your email templates to handle the data for one item at a time. Events like "Started Checkout" and "Placed Order," on the other hand, capture all items involved in the event, which is why dynamic tables work better for these cases.
 
If you need to capture and display multiple items added to the cart before checkout, you can certainly do this via a custom event. You would need to track the data on your end and then send a request to Klaviyo’s events APIs. You can implement this either client-side using the Create Client Event endpoint or server-side using the Create Event endpoint. I hope this helps!

~Chloe


Reply