Solved

Show content based on the day of the week


Userlevel 1
Badge +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?

icon

Best answer by SDBradfo 14 May 2021, 10:07

View original

3 replies

Userlevel 2
Badge +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!

Userlevel 7
Badge +60

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

Userlevel 1
Badge +3

Thanks all, Klaviyo support managed to provide a solution. 

 

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

Reply