Macro text based on day of the week

Answered

6 Comments

  • Andrew J
    Community Moderator

    You should be able to get something to work using liquid. https://support.zendesk.com/hc/en-us/articles/203662146-Understanding-Liquid-markup-and-Zendesk-Support

    0
  • Graeme Carmichael
    Community Moderator

    Joris

    You can try...

    {% assign day = 'now' | date:'%u' | plus: 0 %}

    {% if day >= 6 %}

      Have a great Weekend!

    {% else %}

      Have a great day!

    {% endif %}

    0
  • Andrew J
    Community Moderator

    Thanks Graeme, was hoping someone would jump in with a full solution.

    0
  • ToneControl Helpdesk

    Hi Andrew and Graeme,

    This is great, thanks a lot!

    0
  • Nathan Grose

    Hello, out of curiosity, would there also be a code for the type of day of the week? Ex. How are you this Monday? I like this preference since it has a more personal touch. Thanks in advance!

    0
  • Blanca
    Zendesk Customer Care
    Hi there Nathan,

    Thanks for reaching out. With regard to your query, this is out of our scope, but you may learn more on custom placeholders via https://shopify.github.io/liquid/. 
    0

Please sign in to leave a comment.

Powered by Zendesk