If conditional in email tempalte
-
Hi I need to make conditions in the email template that goes to the administrator. I have 2 custom fields, but I would like to print in the mail the value of one of them depending on what a user enters. I have tried to make them with these 2 options and none of them have solved my problem: Op. 1: {% if ufield_24="1970-01-01" %} {ufield_35} {% else %} {ufield_24} {% endif %} Op. 2: {$ if ufield_24="1970-01-01" $} {ufield_35} {$ else $} {ufield_24} {$ endif $} When making these conditions it is because if you send the empty date fields it sends the date as "1970-01-01". Is there any other way to show the empty date field when the user does not type in any date field? Or how can I make the IF conditions in the mail template? I look forward to your comments Regards
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘If conditional in email tempalte’ is closed to new replies.