Solved

Hiding Template Blocks Based on Dynamic Variables

  • 28 January 2021
  • 2 replies
  • 862 views

Badge +2

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?

icon

Best answer by stevecachia 28 January 2021, 11:37

View original

2 replies

Badge +2

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

event|lookup:'IsDiscounted' = 1

Userlevel 3
Badge +4

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