Skip to main content

If a user adds productA to the cart, then chooses an in cart upsell like, for example, gift wrap. It seems like the abandon cart flow triggers off of the gift wrap item (last item added). I added an exclusion filter for the upsell product and klaviyo blocks the flow, but productA doesn’t seem to trigger the flow at all. How could I make this scenario work? This is for a shopify site.

You can fix this by adjusting your Klaviyo flow trigger logic. Instead of triggering the flow on the “Added to Cart” event for any item, use a trigger filter to include only primary products — for example, filter by Item Name or Product Type not equal to “Gift Wrap.” Then, in your flow filters, exclude gift wrap products but allow other cart items to trigger the flow. Alternatively, set up a custom event property in Shopify (e.g., is_upsell: true/false) and filter Klaviyo to trigger only when is_upsell = false.


@udrt435 Regarding the 'Added to Cart' abandon flow, could you please clarify whether the event is considered singular or plural—that is, whether it reflects all items added to the cart at once or just the most recent item added? Additionally, what is your objective in skipping the email send when only the gift wrap is added, while still triggering the email if the cart contains gift wrap alongside other items? In that you would implement conditional logic within the Django email template to omit the gift wrap in such cases.


@udrt435 Regarding the 'Added to Cart' abandon flow, could you please clarify whether the event is considered singular or plural—that is, whether it reflects all items added to the cart at once or just the most recent item added? Additionally, what is your objective in skipping the email send when only the gift wrap is added, while still triggering the email if the cart contains gift wrap alongside other items? In that you would implement conditional logic within the Django email template to omit the gift wrap in such cases.

From my testing I believe only the last item added to the cart for the user session get’s processed by Klaviyo.

I don’t believe Klaviyo processes an event for each item added to the cart in the user session, so the trigger filter only applies to the last item. If I have a trigger filter to exclude gift wrap product, that just means the workflow will not run at all for ProductA. I would like to feature ProductA in the email not gift wrap upsell. 

On your suggestion for using conditional logic in the Django email template, I don’t think that’s possible since I only see a single product in the event properties not all items from the cart.

Let me know if I am wrong about any of that or have a better solution.


@udrt435 you might be better served by having an alternative Add to Cart event with custom icon to simulate the event as opposed to the one you are getting via the integration automatically (with Shopify icon).  For that you would need to add javascript to your Shopify theme. Please refer to below community threads on instructions on how to do it: