cancel
Showing results for 
Search instead for 
Did you mean: 

Show current month in email template

Show current month in email template

I am creating a custom email template within a custom module and need to show the current month in it. I'm not sure if using a custom variable will work but that was my first thought. What would be the best way to display the month in an email? I'm on 2.2 commerce edition

3 REPLIES 3

Re: Show current month in email template

Hi @adamgreenwell,

 

That variable will be filled with PHP (I guess) on your module so you should fill the variable with the right value.

 

Re: Show current month in email template

How do I pass that into the email template as HTML though? I get that I can't add PHP or JavaScript to the email template so where I'm unclear is how to get the current month value passed into the email template.

Re: Show current month in email template

Hi @adamgreenwell,

 

You said before that "I am creating a custom email template within a custom module and need to show the current month in it"

Can you share the part of the code you're using to send the email?