Text in order confirmation for orders placed on a specific date

Highlighted
New Member
1 0 0

As the subject, I want to provide text (specifically include an already created discount code) within the order confirmation sent only to orders placed on a specific date - namely 31st October (it's a Halloween promo).

Will the following work within the other code of the order confirmation email? The preview won't show presumably as the 'previewed' order is dateless?

 

{% if order.created_at | “%Y,%m,%d” == 2020-10-31 %}

... and here’s your Halloween Treat! Use code <strong>CODE<strong> for 10% off your next order!

{% endif %}

0 Likes