Skip to main content
Solved

Show content based on the day of the week


Forum|alt.badge.img+3

Hi all

 

I’m looking to show particular content on a weekend on our order confirmation emails. Just a note that we are closed on weekends and will dispatch first thing on Monday.

 

I tried this in a text book condition: event|lookup:'current_weekday' == 'Sunday' but it does not appear to work. Does anybody know why?

Best answer by SDBradfo

Thanks all, Klaviyo support managed to provide a solution. 

 

{% now "l" as today %} {% if today == "Saturday" or today == "Sunday" %}

View original
Did this topic or the replies in the thread help you find an answer to your question?

3 replies

marissanunez
Forum|alt.badge.img+6

Hi @SDBradfo 

 

Thanks for sharing your question with the community!

 

I would suggest taking a look at the Klaviyo help doc around time delays. You’re able to limit a flow email to a specific day of the week. This will delay the email going out to the days specified in the filter, in your example M-F. 

I believe you were trying to show the block based on event variables but unless we get the day of the week as a piece of data with the metric that triggers this flow, it won’t work.

 

I hope this helps!


David To
Klaviyo Employee
Forum|alt.badge.img+60
  • Klaviyo Employee
  • 2456 replies
  • May 8, 2021

Hello @SDBradfo

Building on top of @marissanunez, alternative suggestions would be to use a series of flow filters or conditional splits within a flow to ensure that your emails are sent out on a specific day. You can find more details form a similar Community post here:

Hope this helps!

-David


Forum|alt.badge.img+3
  • Author
  • Problem Solver I
  • 7 replies
  • Answer
  • May 14, 2021

Thanks all, Klaviyo support managed to provide a solution. 

 

{% now "l" as today %} {% if today == "Saturday" or today == "Sunday" %}