Skip to main content

I’m trying to set a show/hide condition for template block but whatever I’m trying to do is not working.

I’m doing an Order Confirmation email which needs to include the discount line for those who took the discount while hide that line completely for those who didn’t have any discounts.

 

I did an event lookup and after following one of the articles I decided to go with a > 1 argument (all discounts are more than 1 anyway). Unfortunately this is just hiding the box even when the discount has been applied.

Any help please?

Managed to solve it myself. If anyone has the same issue the solution is to the following:

event|lookup:'IsDiscounted' = 1


Just for reference here is the documentation for dynamic blocks 

 

https://help.klaviyo.com/hc/en-us/articles/115005258208-How-to-Show-or-Hide-Template-Blocks-Based-on-Dynamic-Variables


Reply